Add some regression tests for obsolete issues

Regenerate tests
This commit is contained in:
Alexander Udalov
2013-01-17 17:38:46 +04:00
parent 3b43d5e874
commit 8dff523858
4 changed files with 36 additions and 2 deletions
@@ -0,0 +1,13 @@
// KT-2100
trait I {
val x : String
}
class Foo {
protected val x : String = ""
inner class Inner : I {
override val x : String = this@Foo.x
}
}
@@ -0,0 +1,11 @@
// KT-1188
trait Foo {
val b : Bar
val b1 : Foo.Bar
trait Bar {}
}
trait Foo2 : Foo {
val bb1 : Foo.Bar
}
@@ -2475,6 +2475,16 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/inner/outerGenericParam.kt");
}
@TestMetadata("outerProtectedMember.kt")
public void testOuterProtectedMember() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/outerProtectedMember.kt");
}
@TestMetadata("traits.kt")
public void testTraits() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/traits.kt");
}
@TestMetadata("visibility.kt")
public void testVisibility() throws Exception {
doTest("compiler/testData/diagnostics/tests/inner/visibility.kt");
@@ -413,12 +413,12 @@ public class JetPsiCheckerTestGenerated extends AbstractJetPsiCheckerTest {
public void testPropertiesWithBackingFields() throws Exception {
doTestWithInfos("idea/testData/checker/infos/PropertiesWithBackingFields.kt");
}
@TestMetadata("VariableAsFunction.kt")
public void testVariableAsFunction() throws Exception {
doTestWithInfos("idea/testData/checker/infos/VariableAsFunction.kt");
}
@TestMetadata("WrapIntoRef.kt")
public void testWrapIntoRef() throws Exception {
doTestWithInfos("idea/testData/checker/infos/WrapIntoRef.kt");