- Tests for OUT_OF_CODE_BLOCK_MODIFICATION behaviour

- Enable behaviour for property accessors
This commit is contained in:
Nikolay Krasko
2012-06-05 17:38:59 +04:00
parent 494bd32636
commit 184d3fb16e
11 changed files with 166 additions and 1 deletions
@@ -0,0 +1,4 @@
// FALSE
fun main() {
fun some = 12<caret>
}
@@ -0,0 +1,2 @@
// TRUE
fun some() = <caret>12
@@ -0,0 +1,4 @@
// TRUE
class Some {
fun <caret>
}
@@ -0,0 +1,9 @@
// FALSE
class Test {
val more : Int = 0
val test : Int
get() {
<caret>
return more
}
}
@@ -0,0 +1,2 @@
// TRUE
fun more() = { println<caret> }
@@ -0,0 +1,5 @@
// FALSE
fun main() {
jq() { pri<caret> }
}
@@ -0,0 +1,6 @@
// FALSE
fun test() {
val a = 1<caret>
}
@@ -0,0 +1,4 @@
// FALSE
class Test {
val a : () -> Int = { <caret>pri }
}
@@ -0,0 +1,4 @@
// TRUE
class Test {
val a = "aasdf<caret>"
}