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
@@ -3,7 +3,7 @@ package foo
// CHECK_NOT_CALLED_IN_SCOPE: scope=test function=even
// CHECK_NOT_CALLED_IN_SCOPE: scope=test function=filter_azvtw4$
internal fun even(x: Int) = x % 2 == 0
internal inline fun even(x: Int) = x % 2 == 0
internal fun test(a: List<Int>) = a.filter(::even)