Test data adjustment: JetDiagnosticsTest

This commit is contained in:
Pavel V. Talanov
2015-09-28 19:22:41 +03:00
parent bc8449a70c
commit 7b49baf8c3
4 changed files with 31 additions and 7 deletions
@@ -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>() }