summaryrefslogtreecommitdiff
path: root/tests/objects/bug615830-1.test
diff options
context:
space:
mode:
authorMatthias Berndt <matthias_berndt@gmx.de>2016-08-08 19:41:33 +0200
committerJürg Billeter <j@bitron.ch>2016-09-28 09:15:13 +0200
commit03f8e291755297ae3c39520cd08d0df9684a9e66 (patch)
tree75a9a625edd0ff934179c4a4418a63c8758eb94b /tests/objects/bug615830-1.test
parent52406608968d7056adc6cefaab2a834d8b4c1636 (diff)
downloadvala-03f8e291755297ae3c39520cd08d0df9684a9e66.tar.gz
Fix type checking when using generics in combination with subtyping
https://bugzilla.gnome.org/show_bug.cgi?id=615830
Diffstat (limited to 'tests/objects/bug615830-1.test')
-rw-r--r--tests/objects/bug615830-1.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/objects/bug615830-1.test b/tests/objects/bug615830-1.test
new file mode 100644
index 000000000..0283ce4b8
--- /dev/null
+++ b/tests/objects/bug615830-1.test
@@ -0,0 +1,11 @@
+Invalid Code
+
+class Foo<T> {
+}
+
+class Bar<T> : Foo<T> {
+}
+
+void main (string[] args) {
+ Foo<int> f = new Bar<string> ();
+}