diff --git a/compiler/testData/diagnostics/tests/regressions/kt30245.fir.kt b/compiler/testData/diagnostics/tests/regressions/kt30245.fir.kt index 57fb7b3ddae..c15615a393e 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt30245.fir.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt30245.fir.kt @@ -7,8 +7,8 @@ fun id(x: K): K = x fun test() { val f00: Sample.() -> Unit = id { val a = 1 } - val f01: Sample.() -> Unit = id { s: Sample -> } - val f02: Sample.() -> Unit = id Unit> { s: Sample -> } + val f01: Sample.() -> Unit = id { s: Sample -> } + val f02: Sample.() -> Unit = id Unit> { s: Sample -> } } enum class E { VALUE } @@ -44,11 +44,11 @@ fun test1() { // to extension lambda 0 val f10 = W1(fun Int.(): Int = this) // oi+ ni+ val g10: E0 = id(fun Int.(): Int = this) // oi+ ni+ - val w11 = W1 { i: Int -> i } // oi- ni- - val i11: E0 = id { i: Int -> i } // o1+ ni+ - val w12 = W1 { i -> i } // oi- ni- - val i12: E0 = id { i -> i } // oi- ni- - val j12 = id { i -> i } // oi- ni- + val w11 = W1 { i: Int -> i } // oi- ni- + val i11: E0 = id { i: Int -> i } // o1+ ni+ + val w12 = W1 { i -> i } // oi- ni- + val i12: E0 = id { i -> i } // oi- ni- + val j12 = id { i -> i } // oi- ni- // yet unsupported cases - considering lambdas as extension ones unconditionally // val w13 = W1 { it } // this or it: oi- ni- @@ -83,10 +83,10 @@ fun test2() { // to extension lambda 1 val i27: E1 = when (e) { E.VALUE -> { s: String -> this + s.length } } // oi+ ni+ val i27a: E1 = when (e) { E.VALUE -> { s -> this + s.length } } // oi+ ni+ - val w28 = W2 { i: Int, s -> i + s.length } // oi- ni- - val i28: E1 = id { i: Int, s -> i + s.length } // oi- ni- - val w29 = W2 { i: Int, s: String -> i + s.length } // oi- ni- - val i29: E1 = id { i: Int, s: String -> i + s.length } // oi+ ni+ + val w28 = W2 { i: Int, s -> i + s.length } // oi- ni- + val i28: E1 = id { i: Int, s -> i + s.length } // oi- ni- + val w29 = W2 { i: Int, s: String -> i + s.length } // oi- ni- + val i29: E1 = id { i: Int, s: String -> i + s.length } // oi+ ni+ // yet unsupported cases with ambiguity for the lambda conversion (commented constructors in wrappers above) // val w2a = W2 { i, s -> i + s.length } // overload oi- ni-