FIR IDE: move low level api testdata sources to the analysis directory
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
inline fun <T, R> with(receiver: T, block: T.() -> R): R {
|
||||
return receiver.block()
|
||||
}
|
||||
|
||||
inline fun <T, R> T.let(block: (T) -> R): R {
|
||||
return block(this)
|
||||
}
|
||||
|
||||
class B {
|
||||
val a: Int = 10
|
||||
val x = with(a) {
|
||||
toString().let { it }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user