Fix StringIndexOutOfBoundsException

#EA-72837 Fixed
This commit is contained in:
Denis Zharkov
2015-09-09 12:41:54 +03:00
parent c449c0d080
commit 7c16fb8a89
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun <T> g(x: T) = 1
fun h(x: () -> Unit) = 1
fun foo() {
<!UNRESOLVED_REFERENCE!>f<!>(::<!SYNTAX!><!>)
g(::<!SYNTAX!><!>)
h(::<!SYNTAX!><!>)
}
@@ -0,0 +1,5 @@
package
public fun foo(): kotlin.Unit
public fun </*0*/ T> g(/*0*/ x: T): kotlin.Int
public fun h(/*0*/ x: () -> kotlin.Unit): kotlin.Int