rook
04/29/2019, 11:14 PMinterface Foo{
fun createContext(action: MyObject.() -> Unit)
fun MyObject.makeChange()
}
myObject.makeChange() //this should be illegal
myFoo.createContext {
makeChange() //this should be legal
}
Is there a way to achieve what I’m attempting?bloder
04/29/2019, 11:40 PMrook
04/30/2019, 1:43 AM