[K/JS] Save nullability from the original type of value parameters ^KT-63013 Fixed

This commit is contained in:
Artem Kobzar
2023-11-14 10:40:07 +00:00
committed by Space Team
parent 83c90d0e4f
commit bec434d534
6 changed files with 36 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
// WITH_STDLIB
// EXPECTED_REACHABLE_NODES: 1283
package foo
fun box(): String {
val foo: Char? = 'c'
requireNotNull(foo) { "Fail 1" }
val bar: Char? = null
requireNotNull(bar) { return "OK" }
return "Fail 2"
}