[FIR] Fix lambda resolve in independent context
This commit is contained in:
@@ -10,7 +10,7 @@ fun test() {
|
||||
val y: Unit = if (false);
|
||||
foo(y)
|
||||
|
||||
foo(<!UNRESOLVED_REFERENCE!>{if (1==1);}()<!>)
|
||||
foo({if (1==1);}())
|
||||
|
||||
return if (true);
|
||||
}
|
||||
+8
-8
@@ -9,22 +9,22 @@ fun example() {
|
||||
val e = if (true) {} else false
|
||||
val f = if (true) true else {}
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>{
|
||||
{
|
||||
if (true) true
|
||||
}()<!>;
|
||||
}();
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>{
|
||||
{
|
||||
if (true) true else false
|
||||
}()<!>;
|
||||
}();
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>{
|
||||
{
|
||||
if (true) {} else false
|
||||
}()<!>;
|
||||
}();
|
||||
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>{
|
||||
{
|
||||
if (true) true else {}
|
||||
}()<!>
|
||||
}()
|
||||
|
||||
fun t(): Boolean {
|
||||
return if (true) true
|
||||
|
||||
+2
-2
@@ -10,9 +10,9 @@ fun testAnnotatedLambdaLabel() = lambda@ @Ann {}
|
||||
|
||||
fun testParenthesizedLambdaLabel() = lambda@ ( {} )
|
||||
|
||||
fun testLabelBoundToInvokeOperatorExpression() = l@ <!UNRESOLVED_REFERENCE!>{ 42 }()<!>
|
||||
fun testLabelBoundToInvokeOperatorExpression() = l@ { 42 }()
|
||||
|
||||
fun testLabelBoundToLambda() = <!UNRESOLVED_REFERENCE!>(l@ { 42 })()<!>
|
||||
fun testLabelBoundToLambda() = (l@ { 42 })()
|
||||
|
||||
fun testWhileLoopLabel() {
|
||||
L@ while (true) {}
|
||||
|
||||
Reference in New Issue
Block a user