Files
kotlin-fork/idea/testData/wordSelection/Statements/8.kt
T
Valentin Kipyatkov 46906fd89c KT-5292 Expand selection should have kdoc + method as a stop point
KT-3947 Extend selection works badly with comment

 #KT-5292 Fixed
 #KT-3947 Fixed
2014-12-18 19:02:16 +03:00

24 lines
455 B
Kotlin
Vendored

fun main(args : Array<String>) {
for (i in 1..100) {
when {
i%3 == 0 -> {print("Fizz"); continue;}
i%5 == 0 -> {print("Buzz"); continue;}
(i%3 != 0 && i%5 != 0) -> {print(i); continue;}
else -> println()
}
}
}
fun foo() : Unit {
<selection> println() {
println()
pr<caret>intln()
println()
}
</selection>
println(array(1, 2, 3))
println()
}