KT-42018 explicitly cast inline class values in safe-as
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
fun testUIntSafeAsInt(x: UInt) = x as? Int
|
||||
|
||||
fun box(): String = if (testUIntSafeAsInt(1U) != null) "fail" else "OK"
|
||||
Reference in New Issue
Block a user