Pagoda 5b
08/07/2019, 12:02 PMfun OtherType.myFunc(...)
, what's the syntax to choose the right super extension function for my override?diesieben07
08/07/2019, 12:04 PM(obj as OtherType).extensionFunction()
diesieben07
08/07/2019, 12:05 PMmarstran
08/07/2019, 12:28 PMopen class A {
open fun String.makeInt(): Int = toInt()
}
class B : A() {
override fun String.makeInt(): Int = toInt() + 1
}
diesieben07
08/07/2019, 12:38 PMPagoda 5b
08/07/2019, 12:43 PMPagoda 5b
08/07/2019, 12:43 PMdiesieben07
08/07/2019, 12:49 PMdiesieben07
08/07/2019, 12:50 PMPagoda 5b
08/07/2019, 1:01 PMsuper
syntax if possibleEric Martori
08/09/2019, 2:55 PMdiesieben07
08/12/2019, 7:05 AM