This commit is contained in:
Victor Petukhov
2020-10-23 18:32:41 +03:00
parent c07f25fa44
commit 7b53d668ab
@@ -6,10 +6,10 @@ fun main1() = when {
else -> <!UNRESOLVED_REFERENCE!>Foo::plus<!>
}
fun main2() = if (true) <!UNRESOLVED_REFERENCE!>Foo::minus<!> else <!UNRESOLVED_REFERENCE!>Foo::times<!>
fun main2() = if (true) Foo::minus else Foo::times
fun main3() = if (true) { <!UNRESOLVED_REFERENCE!>Foo::minus<!> } else { <!UNRESOLVED_REFERENCE!>Foo::times<!> }
fun main3() = if (true) { Foo::minus } else { Foo::times }
fun main4() = try { <!UNRESOLVED_REFERENCE!>Foo::minus<!> } finally { <!UNRESOLVED_REFERENCE!>Foo::times<!> }
fun main4() = try { Foo::minus } finally { <!UNRESOLVED_REFERENCE!>Foo::times<!> }
fun main5() = <!UNRESOLVED_REFERENCE!>Foo::minus<!> ?: <!UNRESOLVED_REFERENCE!>Foo::times<!>
fun main5() = Foo::minus ?: Foo::times