diff --git a/compiler/testData/diagnostics/tests/regressions/kt13685.kt b/compiler/testData/diagnostics/tests/regressions/kt13685.kt new file mode 100644 index 00000000000..d578e24185a --- /dev/null +++ b/compiler/testData/diagnostics/tests/regressions/kt13685.kt @@ -0,0 +1,6 @@ +// !DIAGNOSTICS: -UNREACHABLE_CODE + +fun foo() { + val text: List = null!! + text.map Any?::toString +} diff --git a/compiler/testData/diagnostics/tests/regressions/kt13685.txt b/compiler/testData/diagnostics/tests/regressions/kt13685.txt new file mode 100644 index 00000000000..65a6ac47e1f --- /dev/null +++ b/compiler/testData/diagnostics/tests/regressions/kt13685.txt @@ -0,0 +1,3 @@ +package + +public fun foo(): kotlin.Unit diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java index 5601666aae2..d1a1e79a121 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestGenerated.java @@ -14652,6 +14652,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest { doTest(fileName); } + @TestMetadata("kt13685.kt") + public void testKt13685() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/kt13685.kt"); + doTest(fileName); + } + @TestMetadata("kt1489_1728.kt") public void testKt1489_1728() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt");