[FIR] Ignore failing test, improve DiagnosticKind, fix UPPER_BOUND
This commit is contained in:
+4
-4
@@ -9,13 +9,13 @@ fun <T> materialize() = null as T
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>consume<!>(
|
||||
materialize<<!OTHER_ERROR, UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>(),
|
||||
materialize<<!OTHER_ERROR, UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>()
|
||||
materialize<<!UNRESOLVED_REFERENCE!>Foo<Bar<ErrorType>><!>>(),
|
||||
materialize<<!UNRESOLVED_REFERENCE!>Foo<Bar<ErrorType>><!>>()
|
||||
)
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>consume<!>(
|
||||
materialize<<!OTHER_ERROR, UPPER_BOUND_VIOLATED!>Foo<Bar<ErrorType>><!>>(),
|
||||
materialize<<!OTHER_ERROR, UPPER_BOUND_VIOLATED!>Foo<ErrorType><!>>()
|
||||
materialize<<!UNRESOLVED_REFERENCE!>Foo<Bar<ErrorType>><!>>(),
|
||||
materialize<<!UNRESOLVED_REFERENCE!>Foo<ErrorType><!>>()
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ public class Foo {
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun test(e: <!OTHER_ERROR, OTHER_ERROR!>ErrorType<!>) {
|
||||
fun test(e: <!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>ErrorType<!>) {
|
||||
Foo.foo {
|
||||
Sam.Result.<!INAPPLICABLE_CANDIDATE!>create<!>(e)
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
val <T : <!OTHER_ERROR!>KClass<T>.something<!>> abc
|
||||
val <T : <!UNRESOLVED_REFERENCE!>KClass<T>.something<!>> abc
|
||||
+1
-1
@@ -10,7 +10,7 @@ fun test1() {
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(f: (<!OTHER_ERROR!>A<!>)->Unit) {}
|
||||
fun bar(f: (<!UNRESOLVED_REFERENCE!>A<!>)->Unit) {}
|
||||
|
||||
fun test2() {
|
||||
bar { a -> } // here we don't have 'cannot infer parameter type' error
|
||||
|
||||
Reference in New Issue
Block a user