denist
06/27/2016, 10:59 PMval y = listOf<Any>()
val x = y.firstOrNull({ it -> it.value is AType })?.value as AType
SomeConstructor(x.value)
It seems like it should since x could be null, but my IDE doesn’t complain about it and it seems to compile fine.