Files
kotlin-fork/idea/testData/inspectionsLocal/unusedReceiverParameter/propertyInSameClass.kt
T
2018-05-23 01:41:01 +03:00

18 lines
301 B
Kotlin
Vendored

// WITH_RUNTIME
class Test(private val foo: Int) {
val <caret>Test.baz: Int
get() = foo + this.foo + this@baz.foo
fun test(test: Test) {
println(baz)
println(test.baz)
println(Test(3).baz)
}
}
fun main(args: Array<String>) {
Test(1).test(Test(2))
}