Test data adjustment: JetDiagnosticsTest
This commit is contained in:
@@ -31,7 +31,7 @@ fun test() {
|
||||
<!TYPE_INFERENCE_PARAMETER_CONSTRAINT_ERROR!>otherGeneric<!>(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
|
||||
val r = either(1, "")
|
||||
r checkType { _<Comparable<*>>() }
|
||||
r checkType { _<Any>() }
|
||||
|
||||
use(a, b, c, d, e, f, g, r)
|
||||
}
|
||||
@@ -56,7 +56,7 @@ fun <T> lowerBound(t: T, l : Cov<T>): T = throw Exception("$t $l")
|
||||
|
||||
fun testLowerBound(cov: Cov<String>, covN: Cov<Number>) {
|
||||
val r = lowerBound(1, cov)
|
||||
r checkType { _<Comparable<*>>() }
|
||||
r checkType { _<Any>() }
|
||||
|
||||
val n = lowerBound(1, covN)
|
||||
n checkType { _<Number>() }
|
||||
|
||||
Reference in New Issue
Block a user