Added test for selection of when entries.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
fun main(args : Array<String>) {
|
||||
for (i in 1..100) {
|
||||
when {
|
||||
i%3 == 0 -> {print("Fizz"); continue;}
|
||||
i%5 == 0 -> {print("Buzz"); continue;}
|
||||
|
||||
<selection>(i%3 != 0 && i%5 != 0) -> {print(i); continue;}<caret></selection>
|
||||
else -> println()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
println() {
|
||||
println()
|
||||
|
||||
|
||||
println()
|
||||
println()
|
||||
}
|
||||
|
||||
println(array(1, 2, 3))
|
||||
println()
|
||||
}
|
||||
Reference in New Issue
Block a user