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:
+4
-1
@@ -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
@@ -2,6 +2,9 @@
|
||||
|
||||
class A {
|
||||
init {
|
||||
<caret>
|
||||
ca<caret>ll()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// SKIP_ANALYZE_CHECK
|
||||
+3
-1
@@ -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
|
||||
+3
-1
@@ -7,4 +7,6 @@ val test: Some? = object: Some {
|
||||
fun test() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// SKIP_ANALYZE_CHECK
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
// TRUE
|
||||
|
||||
val test: String = "<caret>"
|
||||
val test: String = "<caret>"
|
||||
|
||||
// SKIP_ANALYZE_CHECK
|
||||
Reference in New Issue
Block a user