Tests for Java name resolution in the IDE
#KT-3337 In Progress LightClasses: class object's property getter unresolved in Java, but compiles OK
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class ClassObject {
|
||||
void foo() {
|
||||
WithClassObject.object.$instance.getValue();
|
||||
WithClassObject.object.$instance.getValue();
|
||||
WithClassObject.object.$instance.foo();
|
||||
WithClassObject.object.$instance.getValueWithGetter();
|
||||
WithClassObject.object.$instance.getVariable();
|
||||
WithClassObject.object.$instance.setVariable(0);
|
||||
WithClassObject.object.$instance.getVariableWithAccessors();
|
||||
WithClassObject.object.$instance.setVariableWithAccessors(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class WithClassObject {
|
||||
class object {
|
||||
fun foo() {}
|
||||
|
||||
val value: Int = 0
|
||||
val valueWithGetter: Int
|
||||
get() = 1
|
||||
|
||||
var variable: Int = 0
|
||||
var variableWithAccessors: Int
|
||||
get() = 0
|
||||
set(v) {}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user