yole
12/11/2015, 2:57 PMmbickel
12/11/2015, 2:58 PMcedric
12/11/2015, 3:25 PMmbickel
12/11/2015, 3:27 PMCzar
12/11/2015, 3:27 PMyole
12/11/2015, 3:32 PMname
property which is synthesized for Principal.getName()
is an extension property and does not participate in inheritanceyole
12/11/2015, 3:33 PMdata class X(val _name: String) { override fun getName() = _name }
yole
12/11/2015, 3:33 PMmbickel
12/11/2015, 3:33 PM_name
as a property on X
(as it's a data class).mbickel
12/11/2015, 3:34 PMX::name
exists but not really.mbickel
12/11/2015, 3:34 PMX::_name
)yole
12/11/2015, 3:35 PMmbickel
12/11/2015, 3:38 PMyole
12/11/2015, 3:39 PMyole
12/11/2015, 3:39 PMmbickel
12/11/2015, 3:39 PMmbickel
12/11/2015, 3:39 PMmbickel
12/11/2015, 3:40 PMyole
12/11/2015, 3:41 PMmbickel
12/11/2015, 4:21 PMSystemUser
into the same file as SystemUserDao
throws a compiler error. In my case, SystemUser
and SystemUserDao
aren't in the same module, so compiled separately. sscce getting complicated.loganj
12/11/2015, 4:35 PMloganj
12/11/2015, 4:36 PMmikehearn
12/11/2015, 4:43 PMloganj
12/11/2015, 4:47 PMmikehearn
12/11/2015, 4:52 PMjasoet-gdp
12/11/2015, 5:05 PMtrait Functor[T[_]] {
def fmap[A, B](list: List[A])(f: A => B): List[B]
}
jasoet-gdp
12/11/2015, 5:06 PMFunction[T[_]]
?natpryce
12/11/2015, 5:07 PMjasoet-gdp
12/11/2015, 5:07 PMT[_]
in kotlinnatpryce
12/11/2015, 5:07 PMmap
. The latter is not possible because Kotlin doesn’t have higher kinded types.