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 box(): String {
val a = if(true) {
}
return if (a.toString() == "Unit.VALUE") "OK" else "fail"
return if (a.toString() == "kotlin.Unit") "OK" else "fail"
}
@@ -1,9 +1,9 @@
fun main(args: Array<String>?) {
val y: Unit = Unit.VALUE //do not compile
val y: Unit = Unit //do not compile
A<Unit>() //do not compile
C<Unit>(Unit.VALUE) //do not compile
C<Unit>(Unit) //do not compile
//do not compile
System.out?.println(fff<Unit>(Unit.VALUE)) //do not compile
System.out?.println(fff<Unit>(Unit)) //do not compile
System.out?.println(id<Unit>(y)) //do not compile
System.out?.println(fff<Unit>(id<Unit>(y)) == id<Unit>(foreach(Array<Int>(0,{0}),{(e : Int) : Unit -> }))) //do not compile
}