KT-11030 Borrow test for local classes from JVM backend
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// TODO: Enable when JS backend supports local classes
|
||||
// TARGET_BACKEND: JVM
|
||||
fun box() : String {
|
||||
val o = object {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// TODO: Enable for JS when it supports local classes.
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun testFun1(str: String): String {
|
||||
val capture = str
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// TODO: enable when JS backend gets support of local classes
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
open class C(s: Int) {
|
||||
fun test() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user