KT-4351 Cannot resolve reference to self in init of class local to function

#KT-4351 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-01-11 01:41:45 +04:00
parent 958f7c862d
commit e994b718cb
7 changed files with 66 additions and 12 deletions
@@ -4331,6 +4331,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/inner/outerSuperClassMember.kt");
}
@TestMetadata("referenceToSelfInLocal.kt")
public void testReferenceToSelfInLocal() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/referenceToSelfInLocal.kt");
}
@TestMetadata("resolvePackageClassInObjects.kt")
public void testResolvePackageClassInObjects() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/resolvePackageClassInObjects.kt");
@@ -1013,6 +1013,11 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt864.kt");
}
@TestMetadata("referenceToSelfInLocal.kt")
public void testReferenceToSelfInLocal() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/referenceToSelfInLocal.kt");
}
@TestMetadata("typeCastException.kt")
public void testTypeCastException() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/typeCastException.kt");