mirror of
https://github.com/gryf/tagbar.git
synced 2026-01-05 13:24:19 +01:00
Add tests to repository
This commit is contained in:
35
tests/vala/namespaces.vala
Normal file
35
tests/vala/namespaces.vala
Normal file
@@ -0,0 +1,35 @@
|
||||
using Foo.Sub;
|
||||
|
||||
public class GlobalTestClass {
|
||||
public GlobalTestClass() {
|
||||
}
|
||||
}
|
||||
|
||||
namespace Maman {
|
||||
static int main () {
|
||||
stdout.printf ("Namespace Test\n");
|
||||
|
||||
Bar.run ();
|
||||
|
||||
new GlobalTestClass();
|
||||
|
||||
var obj = new ClassInNestedNamespace ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
class Bar : Object {
|
||||
public static void run () {
|
||||
stdout.printf ("Class in Namespace Test\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Foo.Sub.ClassInNestedNamespace {
|
||||
}
|
||||
|
||||
|
||||
void main () {
|
||||
Maman.main ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user