JS: fix inlining of callable references

This commit is contained in:
Alexey Andreev
2017-01-16 19:23:38 +03:00
parent 7a0f75f164
commit dcb8b7b92c
8 changed files with 23 additions and 13 deletions
@@ -14,7 +14,7 @@ import utils.*
// CHECK_CONTAINS_NO_CALLS: test except=imul
internal fun multiplyBy2(x: Int): Int = x * 2
internal inline fun multiplyBy2(x: Int): Int = x * 2
internal fun test(x: Int): Int = apply(x, ::multiplyBy2)