From b548c5bf93b3a56d9815dab4bf7910a018bc9c59 Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Tue, 7 Apr 2020 15:56:39 +0700 Subject: [PATCH] RemoveRedundantQualifierNameInspection: add regression test #KT-35898 --- .../removeRedundantQualifierName/kt35898.kt | 8 ++++++++ .../idea/inspections/LocalInspectionTestGenerated.java | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 idea/testData/inspectionsLocal/removeRedundantQualifierName/kt35898.kt diff --git a/idea/testData/inspectionsLocal/removeRedundantQualifierName/kt35898.kt b/idea/testData/inspectionsLocal/removeRedundantQualifierName/kt35898.kt new file mode 100644 index 00000000000..9ad74a5569a --- /dev/null +++ b/idea/testData/inspectionsLocal/removeRedundantQualifierName/kt35898.kt @@ -0,0 +1,8 @@ +// PROBLEM: none + +class Test1 { + private inner class Cell + fun check(o: Any) { + (o as? Test1<*>.Cell) + } +} diff --git a/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java index 99298651703..aebea6a9398 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java @@ -9017,6 +9017,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest { runTest("idea/testData/inspectionsLocal/removeRedundantQualifierName/javaConstructor.kt"); } + @TestMetadata("kt35898.kt") + public void testKt35898() throws Exception { + runTest("idea/testData/inspectionsLocal/removeRedundantQualifierName/kt35898.kt"); + } + @TestMetadata("localFun.kt") public void testLocalFun() throws Exception { runTest("idea/testData/inspectionsLocal/removeRedundantQualifierName/localFun.kt");