JS: fix exception in JS front-end when checking JsName that was resolved with errors

This commit is contained in:
Alexey Andreev
2016-11-10 19:08:15 +03:00
parent d2ba25e758
commit 71ef8c4f89
5 changed files with 30 additions and 4 deletions
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -NO_VALUE_FOR_PARAMETER, -CONSTANT_EXPECTED_TYPE_MISMATCH
// This should not crash, see KT-14752
package foo
@JsName fun foo(x: Int) = x
@JsName(23) fun bar(x: Int) = x
@@ -0,0 +1,6 @@
package
package foo {
@kotlin.js.JsName(name = 23) public fun bar(/*0*/ x: kotlin.Int): kotlin.Int
@kotlin.js.JsName public fun foo(/*0*/ x: kotlin.Int): kotlin.Int
}