Control-Flow Analysis: Use PSI to generate pseudocode if nested resolved call is confused with outer one (e.g. a {} when invoke() is missing)
#KT-14500 Fixed
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
== A ==
|
||||
class A
|
||||
---------------------
|
||||
=====================
|
||||
== test ==
|
||||
fun test(a: A) {
|
||||
a { }
|
||||
}
|
||||
---------------------
|
||||
<v0>: A NEW: magic[FAKE_INITIALIZER](a: A) -> <v0>
|
||||
a <v2>: * NEW: r(a) -> <v2>
|
||||
{ } <v1>: * NEW: r({ }) -> <v1>
|
||||
a { } <v3>: * NEW: magic[UNRESOLVED_CALL](a { }|<v1>, <v2>) -> <v3>
|
||||
{ a { } } <v3>: * COPY
|
||||
=====================
|
||||
== anonymous_0 ==
|
||||
{ }
|
||||
---------------------
|
||||
=====================
|
||||
Reference in New Issue
Block a user