mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
29 lines
672 B
Kotlin
Vendored
29 lines
672 B
Kotlin
Vendored
fun test() {
|
|
<caret>propFoo + foo() + fooWithParam(1.extFoo()) { 2 } + FooClass(1).test() + FooClass().test() + FooClass(1, 2).test()
|
|
}
|
|
|
|
class FooClass(i: Int) {
|
|
constructor() : this(1)
|
|
constructor(i: Int, s: Int) : this(1)
|
|
|
|
fun test() = 1
|
|
}
|
|
|
|
fun foo() = 1
|
|
fun fooWithParam(i: Int, f: () -> Int) = 1
|
|
fun Int.extFoo() = 1
|
|
|
|
val propFoo: Int
|
|
get() {
|
|
return 1
|
|
}
|
|
|
|
// EXISTS: getter for propFoo: Int,
|
|
// EXISTS: foo()
|
|
// EXISTS: fooWithParam(Int\, () -> Int)
|
|
// EXISTS: extFoo()
|
|
// EXISTS: fooWithParam: f.invoke()
|
|
// EXISTS: test()
|
|
// EXISTS: constructor FooClass()
|
|
// EXISTS: constructor FooClass(Int)
|
|
// EXISTS: constructor FooClass(Int\, Int) |