Files
kotlin/compiler/testData/resolve/Basic.jet

38 lines
684 B
Plaintext

~A~class A {
~B~class B {
~B()~this(i: Int) {}
}
~foo~fun foo(~foo.a~a : `std::Char`Char) = `foo.a`a`:std::Char`
~fooB~fun fooB() = `foo`foo('1')`:std::Char`
~foo.1~fun foo() : Int = (1.`std::Int.plus(Int)`plus(1))`:std::Int`
~foo1~fun foo1() : `B`B = `B`B()`:B`
~A.a~val a : `std::Int`Int
}
~C~class C : `A`A {
~C.B~class B : `C`C {
}
val x : `C.B`B
}
fun test() : Unit {
for (~i~i in 1..2) {
`i`i`:std::Int`
}
for (val ~j~j in 1..2) {
`j`j`:std::Int`
}
for (val ~k~k : Int in 1..2) {
`k`k`:std::Int`
}
for (~l~l : Int in 1..2) {
`l`l`:std::Int`
while (true) {
`l`l
}
}
}