Paul Woitaschek
06/23/2017, 9:08 AMstanislav.erokhin
diesieben07
06/23/2017, 9:10 AMdiesieben07
06/23/2017, 9:11 AMemaleavil
06/23/2017, 9:15 AMstanislav.erokhin
fun cast(clazz: Class<*>) : MyInterface<*> {
return castHelper<Nothing>(clazz)
}
fun <T : Enum<T>> castHelper(clazz: Class<*>) : MyInterface<*> {
return MyInterface(clazz as Class<T>)
}
stanislav.erokhin
fun cast(clazz: Class<*>) : MyInterface<*> = MyInterface(clazz as Class<Nothing>)
user
06/23/2017, 9:52 AMjlleitschuh
06/23/2017, 2:37 PMuser
06/23/2017, 4:23 PMuser
06/23/2017, 4:45 PMkevinherron
06/23/2017, 5:54 PMilya.gorbunov
06/23/2017, 5:59 PMByteArray
compiles to JS array of numbers, but there's an option -Xtyped-arrays
to enable typed arrays, so it become represented with Int8Array
. Later this option will be enabled by default.krtko
06/23/2017, 6:33 PMkrtko
06/23/2017, 6:33 PMarocnies
06/23/2017, 7:22 PMtrevjones
06/23/2017, 9:01 PMinterface Foo {
fun foo()
}
interface Bar {
fun bar()
}
class FooBar: Foo, Bar {
override fun foo() {}
override fun bar() {}
}
class Thing: Foo, Bar by FooBar()
eidolon
06/23/2017, 10:20 PMeidolon
06/23/2017, 10:20 PMeidolon
06/23/2017, 10:22 PMorangy
eidolon
06/23/2017, 10:34 PMredrield
06/24/2017, 12:14 AMthieumao
06/24/2017, 3:17 AMredrield
06/24/2017, 3:21 AMredrield
06/24/2017, 3:21 AMredrield
06/24/2017, 3:21 AMnish
06/24/2017, 3:55 AMnish
06/24/2017, 3:56 AMnish
06/24/2017, 3:58 AM