Add tests for element -> pseudo-value mapping
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
== doSomething ==
|
||||
fun Any?.doSomething() {}
|
||||
---------------------
|
||||
=====================
|
||||
== bar ==
|
||||
fun bar(): Nothing = throw Exception()
|
||||
---------------------
|
||||
Exception <v0> NEW()
|
||||
Exception() <v0> COPY
|
||||
=====================
|
||||
== foo ==
|
||||
fun foo() {
|
||||
null!!.doSomething()
|
||||
bar().doSomething
|
||||
}
|
||||
---------------------
|
||||
null <v0> NEW()
|
||||
null!! <v1> NEW(<v0>)
|
||||
doSomething <v2> NEW(<v1>)
|
||||
doSomething() <v2> COPY
|
||||
null!!.doSomething() <v2> COPY
|
||||
doSomething <v3> NEW()
|
||||
bar().doSomething <v3> COPY
|
||||
{ null!!.doSomething() bar().doSomething } <v3> COPY
|
||||
=====================
|
||||
Reference in New Issue
Block a user