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