Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/kt3563.kt
T
Evgeny Gerashchenko 897854b3dc KT-6671 Report unused constructor parameters
#KT-6671 fixed
2015-01-27 22:38:27 +03:00

17 lines
354 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!>name<!>: String)
fun foo(f: File, c: Customer) {
f.name
c.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>name<!> // name should be unresolved here
}
//from standard library
val File.name: String
get() = getName()