class Scope {
fun String.appendSomething() = this + "something"
}
fun scopedExtensions(body : Scope.() -> Unit) {
body.invoke(Scope())
}
fun test() {
scopedExtensions {
"Test".appendSomething() // Compiler is ok with this
}
"Bla".appendSomething() // Compiler complains here
}