34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
17 lines
651 B
Kotlin
Vendored
17 lines
651 B
Kotlin
Vendored
// !DIAGNOSTICS: -DEPRECATION
|
|
|
|
<!UNDERSCORE_IS_DEPRECATED!>import kotlin.Deprecated as ___<!>
|
|
|
|
@___("") data class Pair(val x: Int, val y: Int)
|
|
|
|
class <!UNDERSCORE_IS_DEPRECATED!>_<!><<!UNDERSCORE_IS_DEPRECATED!>________<!>>
|
|
val <!UNDERSCORE_IS_DEPRECATED!>______<!> = _<Int>()
|
|
|
|
fun <!UNDERSCORE_IS_DEPRECATED!>__<!>(<!UNDERSCORE_IS_DEPRECATED!>___<!>: Int, y: _<Int>?): Int {
|
|
val (x, <!UNDERSCORE_IS_DEPRECATED!>__________<!>) = Pair(___ - 1, 42)
|
|
val <!UNDERSCORE_IS_DEPRECATED!>____<!> = x
|
|
// in backquotes: allowed
|
|
val `_` = __________
|
|
<!UNDERSCORE_IS_DEPRECATED!>__<!>@ return if (y != null) __(____, y) else __(`_`, ______)
|
|
}
|