KT-11030 Borrow test for local classes from JVM backend

This commit is contained in:
Alexey Andreev
2016-03-01 20:24:03 +03:00
parent 9a8474392d
commit 3e11209d8a
9 changed files with 200 additions and 47 deletions
-2
View File
@@ -1,5 +1,3 @@
// TODO: Enable when JS backend supports local classes
// TARGET_BACKEND: JVM
fun box() : String {
val o = object {
-2
View File
@@ -1,5 +1,3 @@
// TODO: Enable when JS backend get support of local classes
// TARGET_BACKEND: JVM
fun test1(str: String): String {
data class A(val x: Int) {
fun foo() = str
-3
View File
@@ -1,6 +1,3 @@
// TODO: Enable for JS when it supports local classes.
// TARGET_BACKEND: JVM
fun testFun1(str: String): String {
val capture = str