FIR: Explicitlty separate static and member scopes
For Java, they have rather different semantics considering "overrides" and obtaining functions/properties from supertypes See the Java statics implementation
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ fun main() {
|
||||
|
||||
C.a
|
||||
C.b
|
||||
C.foo()
|
||||
C.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
C.bar()
|
||||
|
||||
K.<!UNRESOLVED_REFERENCE!>a<!>
|
||||
|
||||
+2
-2
@@ -26,5 +26,5 @@ public class StaticOverrides {
|
||||
fun test() {
|
||||
StaticOverrides.A.<!AMBIGUITY!>foo<!> {} <!INAPPLICABLE_CANDIDATE!>checkType<!> { <!UNRESOLVED_REFERENCE!>_<!><Boolean>() }
|
||||
StaticOverrides.B.foo {} checkType { _<String>() }
|
||||
StaticOverrides.C.foo {} checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Boolean>() }
|
||||
}
|
||||
StaticOverrides.C.<!AMBIGUITY!>foo<!> {} <!INAPPLICABLE_CANDIDATE!>checkType<!> { <!UNRESOLVED_REFERENCE!>_<!><Boolean>() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user