KT-3563 Compiler requiring java.io.File, and it's unclear why

#KT-3563 fixed
This commit is contained in:
Svetlana Isakova
2013-06-13 20:27:31 +04:00
parent 3cf133bff7
commit 342e9ebe7a
11 changed files with 156 additions and 42 deletions
@@ -0,0 +1,17 @@
// KT-3563 Compiler requiring java.io.File, and it's unclear why
package bar
import java.io.File
class Customer(name: String)
fun foo(f: File, c: Customer) {
f.name
c.<!UNRESOLVED_REFERENCE!>name<!> // name should be unresolved here
}
//from standard library
val File.name: String
get() = getName()