Minor, add regression test on incomplete code with callable reference

#KT-13685 Fixed

(cherry picked from commit c8b30d3310c990193414d7f82bedd50189e0109c)
This commit is contained in:
Alexander Udalov
2016-09-05 12:39:42 +03:00
parent 67f353903e
commit cb209074d3
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,6 @@
// !DIAGNOSTICS: -UNREACHABLE_CODE
fun foo() {
val <!UNUSED_VARIABLE!>text<!>: List<Any> = null!!
text.<!UNRESOLVED_REFERENCE!>map<!> <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>Any<!><!SYNTAX!>?<!>::<!UNRESOLVED_REFERENCE!>toString<!>
}
@@ -0,0 +1,3 @@
package
public fun foo(): kotlin.Unit
@@ -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");