Update test data for compiler visualizer
This commit is contained in:
committed by
TeamCityServer
parent
4ac38e5f29
commit
919591909e
@@ -50,3 +50,9 @@ val test6 = A::qux
|
||||
// │ fun baz(): Unit
|
||||
// │ │
|
||||
val test7 = ::baz
|
||||
|
||||
// reflect/KFunction1<A?, Unit>
|
||||
// │ class A
|
||||
// │ │ fun (A).foo(): Unit
|
||||
// │ │ │
|
||||
val test8 = A?::foo
|
||||
|
||||
@@ -21,3 +21,11 @@ fun foo(some: Some) {
|
||||
// │
|
||||
z = ""
|
||||
}
|
||||
|
||||
fun bar(some: Some) {
|
||||
// Int
|
||||
// │ Double
|
||||
// │ │ String bar.some: Some
|
||||
// │ │ │ │
|
||||
val (a, _, `_`) = some
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
fun main() {
|
||||
// [ERROR: not resolved]
|
||||
// │ [ERROR: not resolved]
|
||||
// │ │ [ERROR: not resolved]
|
||||
// │ │ │
|
||||
{ length } foo { bar() }
|
||||
}
|
||||
Reference in New Issue
Block a user