class object field access
This commit is contained in:
committed by
Nikolay Krasko
parent
55c11d0f44
commit
c90a6263a1
@@ -166,6 +166,12 @@ public class ClassGenTest extends CodegenTestCase {
|
||||
assertEquals(0xFF0000, rgbMethod.invoke(redValue));
|
||||
}
|
||||
|
||||
public void testClassObjFields() throws Exception {
|
||||
loadText("class A() { class object { val value = 10 } }\n" +
|
||||
"fun box() = if(A.value == 10) \"OK\" else \"fail\"");
|
||||
blackBox();
|
||||
}
|
||||
|
||||
public void testKt249() throws Exception {
|
||||
blackBoxFile("regressions/kt249.jet");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user