mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
- locals win - unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus - unqualified nested classes are temporarily reported as unresolved - function without receiver win against extension function - explicit import win against star import
48 lines
778 B
Kotlin
Vendored
48 lines
778 B
Kotlin
Vendored
package a
|
|
|
|
|
|
enum class C {
|
|
E1, E2, E3 {
|
|
object O_O
|
|
|
|
fun b() {
|
|
O_O
|
|
}
|
|
|
|
class G
|
|
},
|
|
|
|
E4 {
|
|
fun c() {
|
|
this.B()
|
|
|
|
C.A()
|
|
A()
|
|
//TODO: should be resolved with error
|
|
this.<!UNRESOLVED_REFERENCE!>A<!>()
|
|
}
|
|
};
|
|
|
|
class A
|
|
inner class B
|
|
object O {
|
|
object InO
|
|
}
|
|
}
|
|
|
|
fun f() {
|
|
C.E1.<!UNRESOLVED_REFERENCE!>A<!>
|
|
C.E1.<!UNRESOLVED_REFERENCE!>A<!>()
|
|
C.E2.B()
|
|
|
|
C.E2.<!UNRESOLVED_REFERENCE!>O<!>
|
|
C.E3.<!UNRESOLVED_REFERENCE!>O<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>InO<!>
|
|
|
|
C.O
|
|
C.O.InO
|
|
C.A()
|
|
C.<!UNRESOLVED_REFERENCE!>B<!>()
|
|
|
|
C.E3.<!UNRESOLVED_REFERENCE!>O_O<!>
|
|
C.E3.<!UNRESOLVED_REFERENCE!>G<!>()
|
|
} |