Js frontend: prohibit default values for functions annotated as nativeIndexer.
This commit is contained in:
+3
@@ -18,4 +18,7 @@ fun foo() {
|
||||
|
||||
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>[nativeGetter]
|
||||
fun Int.get3(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: Any<!>, b: Int, c: Any?): String?<!> = "OK"
|
||||
|
||||
[nativeGetter]
|
||||
fun Any.foo(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: Int = 1<!>): Any? = "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user