Unit.VALUE -> Unit in testData
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
fun foo() {}
|
||||
|
||||
fun box(): String {
|
||||
return if (foo() == Unit.VALUE) "OK" else "Fail"
|
||||
return if (foo() == Unit) "OK" else "Fail"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
val c = Unit.VALUE
|
||||
val c = Unit
|
||||
val d = c
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -11,7 +11,7 @@ fun quux(): Unit? = bar()
|
||||
fun box(): String {
|
||||
foo()
|
||||
|
||||
if (foo() != Unit.VALUE) return "Fail 1"
|
||||
if (foo() != Unit) return "Fail 1"
|
||||
if (foo() != bar()) return "Fail 2"
|
||||
if (bar() != baz()) return "Fail 3"
|
||||
if (baz() != quux()) return "Fail 4"
|
||||
|
||||
@@ -7,7 +7,5 @@ fun box(): String {
|
||||
|
||||
if (Unit != Unit) return "Fail Unit != Unit"
|
||||
|
||||
if (a.VALUE != Unit.VALUE) return "Fail a.VALUE != Unit.VALUE"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user