JS backend: testFiles -> testData
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
var foo = {(x: String) -> x + "K" }
|
||||
return foo.invoke("O")
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
class Foo(val postfix: String) {
|
||||
public fun invoke(text: String): String {
|
||||
return text + postfix
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = Foo(" world!")
|
||||
return a("hello")
|
||||
}
|
||||
Reference in New Issue
Block a user