FIR: Implement captured type substitution
This commit is contained in:
committed by
teamcity
parent
476a7727da
commit
61ea65906c
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNUSED_PARAMETER
|
||||
|
||||
class Foo<K>
|
||||
|
||||
fun <T> getFoo(value: T) = null as Foo<out Foo<T>>
|
||||
fun <R> takeLambda(block: () -> R) {}
|
||||
|
||||
fun main(x: Int) {
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>takeLambda<!> {
|
||||
getFoo(x)
|
||||
}
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNUSED_PARAMETER
|
||||
|
||||
class Foo<K>
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ fun testCapturedVariable() {
|
||||
|
||||
c2
|
||||
|
||||
val c3 = select(SubInv<Number>(), createInvIn())
|
||||
val c3 = <!NEW_INFERENCE_ERROR!>select(SubInv<Number>(), createInvIn())<!>
|
||||
|
||||
c3
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ fun test7(cls: Cls) {
|
||||
}
|
||||
|
||||
fun test8(cls: Cls) {
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>id<!>(
|
||||
id(
|
||||
wrapIn(cls)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user