Added tests for all code samples from KT-60523, except 2.3.
Test for 2.3 sample must be added in the context of KT-61792.
This commit is contained in:
committed by
Space Team
parent
2dae7ce6c1
commit
eab6e9bb36
+21
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-60523
|
||||
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
expect fun warn()
|
||||
expect fun error()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
@Deprecated("", level = DeprecationLevel.WARNING)
|
||||
actual fun warn() {}
|
||||
|
||||
@Deprecated("", level = DeprecationLevel.ERROR)
|
||||
actual fun error() {}
|
||||
|
||||
fun main(){
|
||||
<!DEPRECATION!>warn<!>()
|
||||
<!DEPRECATION_ERROR!>error<!>()
|
||||
}
|
||||
Reference in New Issue
Block a user