JS: fix removal of unused lambdas after inlining

This commit is contained in:
Alexey Andreev
2016-11-21 20:24:25 +03:00
parent 40e00a62f5
commit cf89e24b49
5 changed files with 69 additions and 8 deletions
@@ -0,0 +1,7 @@
// CHECK_NOT_CALLED: produceOK except=box
fun produceOK() = "OK"
private inline fun <T> block(f: () -> T) = f()
fun box(): String = block { produceOK() }