Update test data for compiler visualizer
This commit is contained in:
committed by
TeamCityServer
parent
4ac38e5f29
commit
919591909e
@@ -12,6 +12,31 @@ fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
fun fooLabeled() {
|
||||
// fun io/println(Any?): Unit
|
||||
// │
|
||||
println("!!!")
|
||||
// Int
|
||||
// │fun (Int).rangeTo(Int): ranges/IntRange
|
||||
// Int ││ Int
|
||||
// │ ││ │
|
||||
label@ for (i in 1..10) {
|
||||
// Unit
|
||||
// │ val fooLabeled.i: Int
|
||||
// │ │ fun (Any).equals(Any?): Boolean
|
||||
// │ │ │ Int
|
||||
// │ │ │ │
|
||||
if (i == 5) continue@label
|
||||
// fun io/println(Int): Unit
|
||||
// │ val fooLabeled.i: Int
|
||||
// │ │
|
||||
println(i)
|
||||
}
|
||||
// fun io/println(Any?): Unit
|
||||
// │
|
||||
println("!!!")
|
||||
}
|
||||
|
||||
// collections/List<String>
|
||||
// │
|
||||
fun bar(list: List<String>) {
|
||||
@@ -50,3 +75,16 @@ fun baz(set: Set<Some>) {
|
||||
println("x = $x y = $y")
|
||||
}
|
||||
}
|
||||
|
||||
// collections/List<Some>
|
||||
// │
|
||||
fun withParameter(list: List<Some>) {
|
||||
// Some withParameter.list: collections/List<Some>
|
||||
// │ │
|
||||
for (s: Some in list) {
|
||||
// fun io/println(Any?): Unit
|
||||
// │ val withParameter.s: Some
|
||||
// │ │
|
||||
println(s)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user