QH

simpleAlert
and why it should have setMultiChoiceItems
?Size: a a a
QH
simpleAlert
and why it should have setMultiChoiceItems
?AG
AG
BP
sealed class DemoА так не выводит:
object Foo : Demo()
fun <DEMO : Demo> DEMO.stringify(): String = when (this as Demo) {
is Foo -> "Foo"
}
sealed class DemoПри этом в первом случае IDEA логично говорит, что каст
object Foo : Demo()
fun <DEMO : Demo> DEMO.stringify(): String = when (this) {
is Foo -> "Foo"
}
this as Demoне нужен, но без него компилятор тупит.
AA
AG
simpleAlert
and why it should have setMultiChoiceItems
?simpleAlert
holds my dialog sir.BP
AA
AM
BP
BP
BP
AG
AA
enum class DemoEnum { FOO }
fun <DEMO: DemoEnum> DEMO.stringify(): String = when (this as DemoEnum) {
DemoEnum.FOO -> "Foo"
}
AM
BP
enum class DemoEnum { FOO }
fun <DEMO: DemoEnum> DEMO.stringify(): String = when (this as DemoEnum) {
DemoEnum.FOO -> "Foo"
}
AG
AA
AG
simpleAlert
and why it should have setMultiChoiceItems
?val simpleAlert = AlertDialog.Builder(activity).create()
BP