Fix test after advancing bootstrap compiler to 1.4
Now test is correct as it was previously, see https://github.com/JetBrains/kotlin/commit/76b3964e96b7a13479e9df95d5927be70eeea712#diff-03626fd0c49fefdea63cff24d50ea9eaL10
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@ fun test(r: Runnable) {
|
||||
ForceSam.compare(r, r)
|
||||
ForceSam.compare({}, {})
|
||||
|
||||
ForceSam.compare(r, {})
|
||||
ForceSam.compare({}, r)
|
||||
ForceSam.compare(r, <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is () -> Unit but Runnable was expected">{}</error>)
|
||||
ForceSam.compare(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is () -> Unit but Runnable was expected">{}</error>, r)
|
||||
}
|
||||
|
||||
// Check that new inference is enabled
|
||||
|
||||
Reference in New Issue
Block a user