[KT-4124] Fix test compatibility between JS and Java backed for several tests

This commit is contained in:
Alexey Andreev
2016-02-11 18:29:56 +03:00
parent c231ecfe50
commit 20b3361edc
26 changed files with 144 additions and 736 deletions
+2
View File
@@ -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)