[KT-4124] Fix test compatibility between JS and Java backed for several tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
class List<T>(val head: T, val tail: List<T>? = null)
|
||||
|
||||
fun <T> List<T>.mapHead(f: (T)-> T): List<T> = List<T>(f(head), null)
|
||||
|
||||
Reference in New Issue
Block a user