JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package foo
|
||||
|
||||
inline fun<T> with1(value: T, p: T.() -> Unit) = value.p()
|
||||
|
||||
class A(val expected: String) {
|
||||
val b = B()
|
||||
|
||||
fun foo(): A {
|
||||
with1(b) {
|
||||
y = expected
|
||||
}
|
||||
return this
|
||||
}
|
||||
}
|
||||
class B() {
|
||||
var y = ""
|
||||
}
|
||||
|
||||
fun box() = A("OK").foo().b.y
|
||||
Reference in New Issue
Block a user