Unit.VALUE -> Unit in testData
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user