karelpeeters
10/31/2018, 9:14 PM!!
and a setter that accepts null?Ruckus
10/31/2018, 9:29 PMkarelpeeters
10/31/2018, 9:39 PMkarelpeeters
10/31/2018, 9:40 PMreset()
function on that, but that's super awkward.louiscad
10/31/2018, 11:05 PMvar
, and an inline val
that gets the var
with !!
Ruckus
10/31/2018, 11:08 PMkarelpeeters
10/31/2018, 11:09 PMkarelpeeters
10/31/2018, 11:09 PMlouiscad
11/01/2018, 12:07 AM.toPlatformType()
extension function that returns the inferred type from a generic static java method. It doesn't work outside Kotlin/JVM though.karelpeeters
11/01/2018, 12:12 AMpublic class JavaClass {
public static <T> T platform() {
return null;
}
}
public class KotlinTest {
val x = JavaClass.platform<Int>()
}
makes x: Int!
. Damm that is evil.