Unit.VALUE -> Unit in testData

This commit is contained in:
Zalim Bashorov
2014-07-12 21:25:00 +04:00
parent 4a8519615a
commit c767ffc3e7
49 changed files with 103 additions and 109 deletions
@@ -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 -1
View File
@@ -1,4 +1,4 @@
val c = Unit.VALUE
val c = Unit
val d = c
fun box(): String {
+1 -1
View File
@@ -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"
}