Marc Knaup
10/10/2020, 10:13 PMT?
in a place where you need T
?
Unfortunately there’s no T!
😄
Alternatively in a function where I want a non-nullable T
for reified T: Any?
.
Basically T & Any
.Nir
10/11/2020, 2:29 AMMarc Knaup
10/11/2020, 2:56 AMtypeOf
of non-null T
without reflection, but T
must be nullable in the same function.Ruckus
10/11/2020, 3:22 AMT
to Any
and use T?
in the functionMarc Knaup
10/11/2020, 4:43 AMlouiscad
10/11/2020, 8:46 PMNothing?!
? 😄Marc Knaup
10/11/2020, 8:57 PMlouiscad
10/11/2020, 11:17 PMwhile (true) { }