]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add test for bug 593260
authorJürg Billeter <j@bitron.ch>
Sat, 26 Sep 2009 13:45:28 +0000 (15:45 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 26 Sep 2009 13:45:28 +0000 (15:45 +0200)
tests/Makefile.am
tests/objects/bug593260.vala [new file with mode: 0644]

index f75f8adb1b8a3631010d166d6c87e68949cb8431..df434411a0bb3083840520f3162b2298d1a17c32 100644 (file)
@@ -43,6 +43,7 @@ TESTS = \
        objects/test-026.vala \
        objects/test-029.vala \
        objects/test-034.vala \
+       objects/bug593260.vala \
        errors/errors.vala \
        errors/bug596228.vala \
        dbus/basic-types.test \
diff --git a/tests/objects/bug593260.vala b/tests/objects/bug593260.vala
new file mode 100644 (file)
index 0000000..6c1e658
--- /dev/null
@@ -0,0 +1,10 @@
+class Foo {
+       public void do_foo<T> () {
+               assert (this is Foo);
+       }
+}
+
+void main() {
+       var foo = new Foo ();
+       foo.do_foo<int> ();
+}