Unit.VALUE -> Unit in testData
This commit is contained in:
@@ -15,7 +15,7 @@ fun test2(a: A): Int {
|
||||
}
|
||||
|
||||
fun test3(b: B): Int {
|
||||
return b[Unit.VALUE, Unit.VALUE]
|
||||
return b[Unit, Unit]
|
||||
}
|
||||
|
||||
|
||||
@@ -30,4 +30,4 @@ fun box() : String {
|
||||
if (result != 2) return "fail3: $result"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@ tailRecursive fun foo(x: Int) {
|
||||
return if (x > 0) {
|
||||
(foo(x - 1))
|
||||
}
|
||||
else Unit.VALUE
|
||||
else Unit
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
foo(1000000)
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user