KT-12877: don't throw exception when @JsModule annotation is improperly used

This commit is contained in:
Alexey Andreev
2016-11-29 15:04:31 +03:00
committed by Alexey Andreev
parent d40e923722
commit df88ebb1b3
4 changed files with 29 additions and 3 deletions
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -NO_VALUE_FOR_PARAMETER, -CONSTANT_EXPECTED_TYPE_MISMATCH
// This should not crash
package foo
@JsModule @native fun foo(x: Int): Int
@JsModule(23) @native fun bar(x: Int): Int