Make sure that the class object class is not accessible from Kotlin

This commit is contained in:
Andrey Breslav
2013-02-11 16:20:32 +04:00
parent 766a33aaa1
commit 109c47645b
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,10 @@
class Foo {
class object {
val bar = 1
fun test(<!UNUSED_PARAMETER!>a<!>: Foo.<!UNRESOLVED_REFERENCE!>`object`<!>) {
}
}
}
@@ -2604,6 +2604,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
@TestMetadata("compiler/testData/diagnostics/tests/j+k")
public static class J_k extends AbstractDiagnosticsTestWithEagerResolve {
@TestMetadata("accessClassObjectFromJava.kt")
public void testAccessClassObjectFromJava() throws Exception {
doTest("compiler/testData/diagnostics/tests/j+k/accessClassObjectFromJava.kt");
}
public void testAllFilesPresentInJ_k() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/j+k"), Pattern.compile("^(.+)\\.kt$"), true);
}