Added 2 failing tests for bugs in resolve
This commit is contained in:
committed by
Svetlana Isakova
parent
0f370a7cf6
commit
0cffdeb973
@@ -0,0 +1,11 @@
|
||||
Expression type:kotlin.String
|
||||
----------------------------------------------
|
||||
fun foo(x: Any) {
|
||||
if (x is String) {
|
||||
print(<selection>System.getProperty("abc")!!<selection>)
|
||||
/* STATEMENT DELETED: println() */
|
||||
}
|
||||
else {
|
||||
/* STATEMENT DELETED: println() */
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fun foo(x: Any) {
|
||||
if (x is String) {
|
||||
print(<selection>System.getProperty("abc")!!</selection>)
|
||||
println()
|
||||
}
|
||||
else {
|
||||
println()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
Expression type:kotlin.Int
|
||||
----------------------------------------------
|
||||
fun foo(x: Any) {
|
||||
if (x is String) {
|
||||
System.getProperty("abc".substring(<selection>1<selection>))
|
||||
/* STATEMENT DELETED: println() */
|
||||
}
|
||||
else {
|
||||
/* STATEMENT DELETED: println() */
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fun foo(x: Any) {
|
||||
if (x is String) {
|
||||
System.getProperty("abc".substring(<selection>1</selection>))
|
||||
println()
|
||||
}
|
||||
else {
|
||||
println()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user