Make coercion to Unit explicit in IR.
This commit is contained in:
committed by
Dmitry Petrov
parent
233a979932
commit
1c2a676cd6
@@ -0,0 +1,12 @@
|
||||
// +JDK
|
||||
|
||||
val test1: () -> Unit = { 42 }
|
||||
|
||||
fun test2(mc: MutableCollection<String>) {
|
||||
mc.add("")
|
||||
}
|
||||
|
||||
fun test3() {
|
||||
System.out?.println("Hello,")
|
||||
System.out?.println("world!")
|
||||
}
|
||||
Reference in New Issue
Block a user