JET-26 Check bounds in generic types

+ Working on JET-25 Support method overriding
This commit is contained in:
Andrey Breslav
2011-05-10 21:37:17 +04:00
parent 7f6440c439
commit 7c263c3e95
16 changed files with 253 additions and 39 deletions
+8
View File
@@ -0,0 +1,8 @@
class A
class B<T : A>()
class C<T : B<<error>Int</error>>, X : {(B<<error>Char</error>>) : (B<<error>Any</error>>, B<A>)}>() : B<<error>Any</error>>() { // 2 errors
val a = new B<<error>Char</error>>() // error
val x : {(B<<error>Char</error>>) : B<<error>Any</error>>}
}