Report error on more than one class bound for type parameters

Such code may behave unexpectedly when compiled to JVM
This commit is contained in:
Alexander Udalov
2015-11-20 19:42:35 +03:00
parent 5541224288
commit 21e64e02bd
13 changed files with 184 additions and 51 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class Bar<T : <warning>Foo</warning>>
class Buzz<T> where T : <warning>Bar<<error>Int</error>></warning>, T : <error>nioho</error>
class X<T : <warning>Foo</warning>>
class Y<<error>T</error>> where T : <warning>Foo</warning>, T : <warning>Bar<Foo></warning>
class Y<<error>T</error>> where T : <warning>Foo</warning>, T : <error>Bar<Foo></error>
fun <T> test2(t : T)
where