Files
kotlin-fork/compiler/fir/psi2fir/testData/rawBuilder/expressions/calls.txt
T
2019-11-08 12:12:38 +03:00

43 lines
1.1 KiB
Plaintext
Vendored

FILE: calls.kt
public? final? infix fun distance(x: Int, y: Int): <implicit> {
^distance x#.plus#(y#)
}
public? final? fun test(): Int {
^test Int(3).distance#(Int(4))
}
public? final? fun testRegular(): Int {
^testRegular distance#(Int(3), Int(4))
}
public? final? class My : R|kotlin/Any| {
public? constructor(x: Int): R|My| {
super<R|kotlin/Any|>()
}
public? final? var x: Int = R|<local>/x|
public? get(): Int
public? set(value: Int): R|kotlin/Unit|
public? final? operator fun invoke(): <implicit> {
^invoke x#
}
public? final? fun foo(): R|kotlin/Unit| {
}
public? final? fun copy(): <implicit> {
^copy My#(x#)
}
}
public? final? fun testInvoke(): Int {
^testInvoke My#(Int(13)).invoke#()
}
public? final? fun testQualified(first: My, second: My?): R|kotlin/Unit| {
println#(first#.x#)
println#(second#?.x#)
first#.foo#()
second#?.foo#()
first#.copy#().foo#()
first#.x# = Int(42)
}