Never import object descriptors, for they may overwrite corresponding vals

This commit is contained in:
Andrey Breslav
2013-11-16 15:00:33 +04:00
parent 0fa70b7e47
commit 345ecbf4c0
5 changed files with 33 additions and 1 deletions
@@ -0,0 +1,19 @@
// FILE: a.kt
package foo
object Bar {
fun bar() {}
}
// FILE: b.kt
package baz
import foo.Bar
class C: <!UNRESOLVED_REFERENCE!>Bar<!>
fun test() {
Bar.bar()
}