Add SKIP_DCE_DRIVEN directive in JS-IR tests

Otherwise they fail with a compiler exception:
"An operation is not implemented: SAM conversion"
This commit is contained in:
Ilya Gorbunov
2020-06-15 19:07:12 +03:00
parent de6154980d
commit 2fe222e8e7
13 changed files with 13 additions and 0 deletions
@@ -1,5 +1,6 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// SKIP_DCE_DRIVEN
fun sort(list: MutableList<String>, comparator: (String, String) -> Int) {
list.sortWith(Comparator(comparator))
@@ -1,6 +1,7 @@
// !LANGUAGE: +NewInference
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
// SKIP_DCE_DRIVEN
class Foo<C : Any> {
fun test(candidates: Collection<C>): List<C> {
@@ -1,5 +1,6 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// SKIP_DCE_DRIVEN
fun box(): String {
val list = mutableListOf(3, 2, 4, 8, 1, 5)
@@ -1,5 +1,6 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// SKIP_DCE_DRIVEN
fun box(): String {
val list = mutableListOf(3, 2, 4, 8, 1, 5)