[FIR] Don't set up expected type for function body
This commit is contained in:
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
Failures detected in FirBodyResolveTransformerAdapter, file: /nestedCallWithOverload.fir.kt
|
||||
Cause: java.lang.RuntimeException: While resolving call R?C|/baz|(R?C|/id|(<L> = id@fun <implicit>.<anonymous>(): <implicit> {
|
||||
it#.inv#()
|
||||
}
|
||||
), R|/id|<R|(kotlin/Int) -> kotlin/Unit|>(<L> = id@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
Unit
|
||||
}
|
||||
))
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ fun test() {
|
||||
id(id<(Int) -> Unit>(::foo))
|
||||
baz<(Int) -> Unit>(id(::foo), id(id(::foo)))
|
||||
baz(id(::foo), id(id<(Int) -> Unit>(::foo)))
|
||||
baz(id(<!UNRESOLVED_REFERENCE!>::foo<!>), id<(Int) -> Unit>(id(::foo)))
|
||||
baz(id(::foo), id<(Int) -> Unit>(id(::foo)))
|
||||
|
||||
baz(id { it.inv() }, id<(Int) -> Unit> { })
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
Failures detected in FirBodyResolveTransformerAdapter, file: /kt36044.fir.kt
|
||||
Cause: java.lang.RuntimeException: While resolving call R?C|/select|(Char(a), R?C|/map|(<L> = map@fun <anonymous>(): <ERROR TYPE REF: No type for block> {
|
||||
^ map@fun <implicit>.<anonymous>(): <implicit> {
|
||||
String()
|
||||
}
|
||||
|
||||
}
|
||||
))
|
||||
@@ -1,9 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// Issue: KT-36044
|
||||
|
||||
fun <A> select(x: A, f: () -> A) = f()
|
||||
fun <B> map(f: () -> B) = f()
|
||||
|
||||
fun main() {
|
||||
select('a', map { { "" } })
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// Issue: KT-36044
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -8,5 +8,5 @@ fun test2(f: ((String) -> Int)?) {
|
||||
val a0: ((Int) -> Int)? = select2({ it -> it }, null)
|
||||
val b0: ((Nothing) -> Unit)? = select2({ it -> it }, null)
|
||||
|
||||
select3({ <!UNRESOLVED_REFERENCE!>it<!>.<!UNRESOLVED_REFERENCE!>length<!> }, f, null)
|
||||
select3({ it.length }, f, null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user