Added/updated tests for LexicalScope.
This commit is contained in:
@@ -4,7 +4,7 @@ class Delegate {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
@@ -16,7 +16,7 @@ sink:
|
||||
fun get(_this: Any, p: PropertyMetadata): Int = 0
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
v(_this: Any)
|
||||
w(_this)
|
||||
v(p: PropertyMetadata)
|
||||
@@ -33,7 +33,7 @@ sink:
|
||||
val a = Delegate()
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
v(val a = Delegate())
|
||||
mark(Delegate())
|
||||
call(Delegate, <init>)
|
||||
@@ -49,7 +49,7 @@ sink:
|
||||
val b by a
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
v(val b by a)
|
||||
r(a)
|
||||
L1:
|
||||
|
||||
@@ -9,12 +9,12 @@ class C {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
v(val a: Int get() = 1)
|
||||
mark({ $a })
|
||||
2 mark({ $a })
|
||||
r($a)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
1 <END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ abstract class Bar {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
v(abstract var bar : String)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
@@ -18,7 +18,7 @@ sink:
|
||||
fun foo() = "foo" + this.$bar
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
1 <START>
|
||||
mark("foo" + this.$bar)
|
||||
mark("foo")
|
||||
r("foo")
|
||||
|
||||
Reference in New Issue
Block a user