KT-11765 Analyze code in anonymous initializer of inteface
#KT-11765 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
interface I {
|
||||
<error>init {
|
||||
val c = 1
|
||||
val g = c
|
||||
}</error>
|
||||
}
|
||||
@@ -526,6 +526,12 @@ public class PsiCheckerTestGenerated extends AbstractPsiCheckerTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InitializerInInterface.kt")
|
||||
public void testInitializerInInterface() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/regression/InitializerInInterface.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceDeclarationAsExpression.kt")
|
||||
public void testInterfaceDeclarationAsExpression() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/regression/InterfaceDeclarationAsExpression.kt");
|
||||
|
||||
Reference in New Issue
Block a user