KT-57487: Add codegen test
Merge-request: KT-MR-9300 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
a2e2a96fd3
commit
9407ec35e3
@@ -0,0 +1,10 @@
|
||||
// KT-57487: Stdlib ArraysTest fails with `Class found but error nodes are not allowed`
|
||||
// IGNORE_BACKEND_K2: NATIVE, JS_IR
|
||||
|
||||
// Minimized from libraries.stdlib.test.collections.ArraysTest.sortedTests()
|
||||
// Exception is: Class found but error nodes are not allowed
|
||||
fun <T: Comparable<T>> arrayData(vararg values: T, toArray: Array<T>.() -> Unit) {}
|
||||
fun box(): String {
|
||||
arrayData(42) { }
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user