Moving test data into subfolders

This commit is contained in:
Valentin Kipyatkov
2015-08-13 15:56:03 +03:00
parent 9546e46ae0
commit 13fc12bbae
34 changed files with 456 additions and 384 deletions
@@ -0,0 +1,14 @@
trait Expr
class Num(val value : Int) : Expr
fun eval(e : Expr) {
if (e is Num) {
return e.<caret>
}
}
// EXIST: value
@@ -0,0 +1,12 @@
class Expr {}
class Num : Expr() {
fun testing() {}
}
fun eval(e : Expr) {
if (e is Num) {
return e.<caret>()
}
}
// EXIST: testing
@@ -0,0 +1,11 @@
trait Expr {
public fun testThis() {
if (this is Num) {
this.<caret>
}
}
}
class Num(val toCheck : Int) : Expr
// EXIST: toCheck
@@ -0,0 +1,8 @@
trait Expr
class Sum(val left : Expr, val right : Expr) : Expr
fun evalWhen(e : Expr) : Int = when (e) {
is Sum -> e.<caret>
}
// EXIST: left, right
@@ -0,0 +1,21 @@
class C {
fun bar(){}
}
open class X {
fun Any.foo() {
if (this is C && this@X is Y) {
<caret>
}
}
}
class Y : X() {
fun y()
}
fun C.extFun(){}
// EXIST: bar
// EXIST: y
// EXIST: extFun