[FIR] Add diagnostic UPPER_BOUND_VIOLATED

This commit is contained in:
Nick
2020-07-09 13:46:16 +03:00
committed by Mikhail Glukhikh
parent b9a220c624
commit 41a0cfe002
17 changed files with 361 additions and 34 deletions
@@ -9,13 +9,13 @@ fun <T> materialize() = null as T
fun test() {
consume(
materialize<Foo<Bar<ErrorType>>>(),
materialize<Foo<Bar<ErrorType>>>()
materialize<<!UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>(),
materialize<<!UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>()
)
<!INAPPLICABLE_CANDIDATE!>consume<!>(
materialize<Foo<Bar<ErrorType>>>(),
materialize<Foo<ErrorType>>()
materialize<<!UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>(),
materialize<<!UPPER_BOUND_VIOLATED!>Foo<ErrorType><!>>()
)
}