Test that out-of-block behaviour conforms running the analyze of the nearest expression

Mark as exceptions cases with field initialize expression and body of class init for now
This commit is contained in:
Nikolay Krasko
2016-08-26 20:14:24 +03:00
parent ec6780b49c
commit 64d511566e
10 changed files with 85 additions and 10 deletions
+4 -1
View File
@@ -6,4 +6,7 @@ class A {
<caret>
}
}
}
}
// TODO
// SKIP_ANALYZE_CHECK
@@ -1,4 +1,7 @@
// TRUE
// (Investigation starts from parent)
fun test() : Int = <caret>12
fun test() : Int = <caret>12
// TODO
// SKIP_ANALYZE_CHECK
@@ -1,3 +1,6 @@
// TRUE
val test : Int
get() = <caret>12
get() = <caret>12
// TODO
// SKIP_ANALYZE_CHECK
@@ -1,4 +1,6 @@
// TRUE
class Test {
val a : () -> Int = { <caret>pri }
}
}
// SKIP_ANALYZE_CHECK
+5 -2
View File
@@ -2,6 +2,9 @@
class A {
init {
<caret>
ca<caret>ll()
}
}
}
// TODO:
// SKIP_ANALYZE_CHECK
@@ -7,4 +7,6 @@ val test: Some = object: Some {
fun test() {
<caret>
}
}
}
// SKIP_ANALYZE_CHECK
@@ -9,4 +9,6 @@ val test: Int? = if (true) {
}
else {
}
}
// SKIP_ANALYZE_CHECK
@@ -7,4 +7,6 @@ val test: Some? = object: Some {
fun test() {
<caret>
}
}
}
// SKIP_ANALYZE_CHECK
@@ -1,3 +1,5 @@
// TRUE
val test: String = "<caret>"
val test: String = "<caret>"
// SKIP_ANALYZE_CHECK