K1 opt-in: fix message/behavior for future error with WasExperimental
This commit is contained in:
committed by
Space Team
parent
8ddc535caf
commit
f62bdb0e3d
@@ -0,0 +1,14 @@
|
||||
// !API_VERSION: 1.5
|
||||
|
||||
import kotlin.time.Duration
|
||||
|
||||
@OptIn(kotlin.time.ExperimentalTime::class)
|
||||
data class Some(val duration: Duration = Duration.INFINITE)
|
||||
|
||||
@OptIn(kotlin.time.ExperimentalTime::class)
|
||||
fun foo(duration: Duration = Duration.INFINITE) {}
|
||||
|
||||
fun test() {
|
||||
<!OPT_IN_USAGE_FUTURE_ERROR!>Some<!>()
|
||||
<!OPT_IN_USAGE_ERROR!>foo<!>()
|
||||
}
|
||||
Reference in New Issue
Block a user