diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/checkers/PsiCheckerTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/checkers/PsiCheckerTestGenerated.java index ca1b86f5dce0..ae41edef17ab 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/checkers/PsiCheckerTestGenerated.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/checkers/PsiCheckerTestGenerated.java @@ -992,6 +992,12 @@ public class PsiCheckerTestGenerated extends AbstractPsiCheckerTest { doTest(fileName); } + @TestMetadata("instantiationOfInnerClassInQualifiedForm.kt") + public void testInstantiationOfInnerClassInQualifiedForm() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/diagnosticsMessage/instantiationOfInnerClassInQualifiedForm.kt"); + doTest(fileName); + } + @TestMetadata("noSubstitutedTypeParameter.kt") public void testNoSubstitutedTypeParameter() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/diagnosticsMessage/noSubstitutedTypeParameter.kt"); diff --git a/plugins/kotlin/idea/tests/testData/checker/diagnosticsMessage/instantiationOfInnerClassInQualifiedForm.kt b/plugins/kotlin/idea/tests/testData/checker/diagnosticsMessage/instantiationOfInnerClassInQualifiedForm.kt new file mode 100644 index 000000000000..669df69ed67b --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/checker/diagnosticsMessage/instantiationOfInnerClassInQualifiedForm.kt @@ -0,0 +1,7 @@ +class A { + inner class XYZ + + fun foo() { + val v: A.XYZ = A.XYZ() + } +} \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt b/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt index 0fee8dbf7ad9..70b72279c1eb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt @@ -1,5 +1,5 @@ // "Move annotation to receiver type" "false" -// ERROR: '@receiver:' annotations could be applied only to extension function or extension property declarations +// ERROR: '@receiver:' annotations can only be applied to the receiver type of extension function or extension property declarations // ACTION: Convert to expression body // ACTION: Make internal // ACTION: Make private diff --git a/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt b/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt index 2143b19947b7..a5acb4bc298c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt @@ -1,5 +1,5 @@ // "Move annotation to receiver type" "false" -// ERROR: '@receiver:' annotations could be applied only to extension function or extension property declarations +// ERROR: '@receiver:' annotations can only be applied to the receiver type of extension function or extension property declarations // ACTION: Make internal // ACTION: Make private // ACTION: Specify type explicitly