Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/kt3563.kt
T
2015-09-03 15:55:55 +03:00

16 lines
335 B
Kotlin
Vendored

// KT-3563 Compiler requiring java.io.File, and it's unclear why
package bar
import java.io.File
class Customer(<!UNUSED_PARAMETER!>name1<!>: String)
fun foo(f: File, c: Customer) {
f.name1
c.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>name1<!> // name1 should be unresolved here
}
val File.name1: String
get() = getName()