restructured control flow tests
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
== Delegate ==
|
||||
class Delegate {
|
||||
fun get(_this: Any, p: PropertyMetadata): Int = 0
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
== get ==
|
||||
fun get(_this: Any, p: PropertyMetadata): Int = 0
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(_this: Any)
|
||||
w(_this)
|
||||
v(p: PropertyMetadata)
|
||||
w(p)
|
||||
r(0)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
== a ==
|
||||
val a = Delegate()
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(val a = Delegate())
|
||||
mark(Delegate())
|
||||
call(Delegate, <init>)
|
||||
w(a)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
== b ==
|
||||
val b by a
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(val b by a)
|
||||
r(a)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
@@ -0,0 +1,7 @@
|
||||
class Delegate {
|
||||
fun get(_this: Any, p: PropertyMetadata): Int = 0
|
||||
}
|
||||
|
||||
val a = Delegate()
|
||||
|
||||
val b by a
|
||||
@@ -0,0 +1,22 @@
|
||||
== C ==
|
||||
class C {
|
||||
val a: Int
|
||||
get() = 1
|
||||
|
||||
{
|
||||
$a
|
||||
}
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(val a: Int get() = 1)
|
||||
mark({ $a })
|
||||
r($a)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
@@ -0,0 +1,8 @@
|
||||
class C {
|
||||
val a: Int
|
||||
get() = 1
|
||||
|
||||
{
|
||||
$a
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
== Bar ==
|
||||
abstract class Bar {
|
||||
abstract var bar : String
|
||||
fun foo() = "foo" + this.$bar
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(abstract var bar : String)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
== foo ==
|
||||
fun foo() = "foo" + this.$bar
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark("foo" + this.$bar)
|
||||
mark("foo")
|
||||
r("foo")
|
||||
mark(this.$bar)
|
||||
r(this)
|
||||
r($bar)
|
||||
call(+, plus)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
@@ -0,0 +1,4 @@
|
||||
abstract class Bar {
|
||||
abstract var bar : String
|
||||
fun foo() = "foo" + this.$bar
|
||||
}
|
||||
Reference in New Issue
Block a user