Use NoScopeRecordCliBindingTrace for codegen tests
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
fun equals1(a: Double, b: Double?) = a == b
|
||||
|
||||
fun equals2(a: Double?, b: Double?) = a!! == b!!
|
||||
@@ -20,11 +23,16 @@ fun box(): String {
|
||||
if (!equals2(-0.0, 0.0)) return "fail 2"
|
||||
if (!equals3(-0.0, 0.0)) return "fail 3"
|
||||
if (!equals4(-0.0, 0.0)) return "fail 4"
|
||||
if (!equals5(-0.0, 0.0)) return "fail 5"
|
||||
if (!equals6(-0.0, 0.0)) return "fail 6"
|
||||
|
||||
// Smart casts behavior in 1.2
|
||||
if (equals5(-0.0, 0.0)) return "fail 5"
|
||||
if (equals6(-0.0, 0.0)) return "fail 6"
|
||||
|
||||
if (!equals7(-0.0, 0.0)) return "fail 7"
|
||||
|
||||
if (!equals8(-0.0, 0.0)) return "fail 8"
|
||||
// Smart casts behavior in 1.2
|
||||
if (equals8(-0.0, 0.0)) return "fail 8"
|
||||
|
||||
if (!equals8(null, null)) return "fail 9"
|
||||
if (equals8(null, 0.0)) return "fail 10"
|
||||
if (equals8(0.0, null)) return "fail 11"
|
||||
|
||||
Reference in New Issue
Block a user