Deprecate escaped modifiers and unescaped annotations

This commit is contained in:
Denis Zharkov
2015-09-08 12:11:30 +03:00
parent 25cd9de71a
commit 676ca86ea4
184 changed files with 979 additions and 787 deletions
@@ -1,22 +1,22 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
nativeGetter
@nativeGetter
fun Int.get(a: String): Int? = 1
nativeGetter
@nativeGetter
fun Int.get2(a: Number): String? = "OK"
nativeGetter
@nativeGetter
fun Int.get3(a: Int): String? = "OK"
nativeGetter
@nativeGetter
fun Int.baz(<!NATIVE_INDEXER_CAN_NOT_HAVE_DEFAULT_ARGUMENTS!>a: Int = 0<!>): String? = "OK"
nativeGetter
@nativeGetter
fun Int.get(<!NATIVE_INDEXER_KEY_SHOULD_BE_STRING_OR_NUMBER!>a: Any<!>): Int? = 1
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>nativeGetter
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>@nativeGetter
fun Int.get2(): String?<!> = "OK"
<!NATIVE_INDEXER_WRONG_PARAMETER_COUNT!>nativeGetter
<!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"