[FIR] Add ONLY_ONE_CLASS_BOUND_ALLOWED diagnostic

This commit is contained in:
Andrey Zinovyev
2021-04-07 11:31:08 +00:00
committed by Space
parent 68f39768ae
commit fc8b75be80
10 changed files with 56 additions and 11 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class Bar<T : Foo>
class Buzz<T> where T : Bar<Int>, T : <error descr="[UNRESOLVED_REFERENCE] Unresolved reference: nioho">nioho</error>
class X<T : Foo>
class Y<T> where T : Foo, T : Bar<Foo>
class Y<T> where T : Foo, T : <error descr="[ONLY_ONE_CLASS_BOUND_ALLOWED] Only one of the upper bounds can be a class">Bar<Foo></error>
fun <T> test2(t : T)
where