Add some regression tests for obsolete issues
Regenerate tests
This commit is contained in:
@@ -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");
|
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")
|
@TestMetadata("visibility.kt")
|
||||||
public void testVisibility() throws Exception {
|
public void testVisibility() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/inner/visibility.kt");
|
doTest("compiler/testData/diagnostics/tests/inner/visibility.kt");
|
||||||
|
|||||||
@@ -413,12 +413,12 @@ public class JetPsiCheckerTestGenerated extends AbstractJetPsiCheckerTest {
|
|||||||
public void testPropertiesWithBackingFields() throws Exception {
|
public void testPropertiesWithBackingFields() throws Exception {
|
||||||
doTestWithInfos("idea/testData/checker/infos/PropertiesWithBackingFields.kt");
|
doTestWithInfos("idea/testData/checker/infos/PropertiesWithBackingFields.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("VariableAsFunction.kt")
|
@TestMetadata("VariableAsFunction.kt")
|
||||||
public void testVariableAsFunction() throws Exception {
|
public void testVariableAsFunction() throws Exception {
|
||||||
doTestWithInfos("idea/testData/checker/infos/VariableAsFunction.kt");
|
doTestWithInfos("idea/testData/checker/infos/VariableAsFunction.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("WrapIntoRef.kt")
|
@TestMetadata("WrapIntoRef.kt")
|
||||||
public void testWrapIntoRef() throws Exception {
|
public void testWrapIntoRef() throws Exception {
|
||||||
doTestWithInfos("idea/testData/checker/infos/WrapIntoRef.kt");
|
doTestWithInfos("idea/testData/checker/infos/WrapIntoRef.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user