class object field access

This commit is contained in:
Alex Tkachman
2011-12-15 17:21:56 +02:00
committed by Nikolay Krasko
parent 55c11d0f44
commit c90a6263a1
2 changed files with 15 additions and 1 deletions
@@ -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");
}