Make coercion to Unit explicit in IR.

This commit is contained in:
Dmitry Petrov
2016-09-19 15:59:49 +03:00
committed by Dmitry Petrov
parent 233a979932
commit 1c2a676cd6
22 changed files with 347 additions and 182 deletions
@@ -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!")
}