Fix deprecations in testData: BlackBoxWithStdLibCodegenTest
This commit is contained in:
+2
-2
@@ -22,11 +22,11 @@ fun nonExhaustive(x: Int): Int {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var result = (0..3).map(::exhaustive).makeString()
|
||||
var result = (0..3).map(::exhaustive).joinToString()
|
||||
|
||||
if (result != "4, 1, 2, 3") return "exhaustive:" + result
|
||||
|
||||
result = (0..3).map(::nonExhaustive).makeString()
|
||||
result = (0..3).map(::nonExhaustive).joinToString()
|
||||
|
||||
if (result != "4, 1, 2, 3") return "non-exhaustive:" + result
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user