JS: don't optimize RTTI when possible, i.e. don't remove is and as when object is known at compile time to have type in RHS of expression. Substitute kotlin.Any with Object. Fix #KT-7665, #KT-7664
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// JS backend does not support Unit well. See KT-13932
|
||||
|
||||
val foo: () -> Unit = {}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user