Hullaballoonatic
01/21/2019, 7:07 AMCzar
01/21/2019, 7:15 AMclass Something {}
fun Something.extFunction() {}
Function extFunction
will be generated as something like this:
class SomeClassKt {
public static extFunction(Something $receiver) {}
}
Czar
01/21/2019, 7:18 AMkarelpeeters
01/21/2019, 10:32 AMiterface Animal {
fun foo() = "foo"
}
class Dog: Animal
fun Dog.foo() = "bar"
val dog = Dog()
val animal = dog
dog.foo() == "bar"
animal.foo() == "foo"
Behaviour like this would be very unintuitive.Hullaballoonatic
01/30/2019, 6:50 PM