nilable list can not be compared to nil
Posted: Mon Nov 09, 2009 3:41 pm
I have opened a ticked (#190) because this throws an unexpected (at least to me) exception
UPDATE: you need to do it this way to make it work correctly:
ls as IList<of int>? = List<of int>()
so i have marked the ticket as invalid
- Code: Select all
class NilableListTest
def main is shared
ls = List<of int>?()
if not ls == nil
Console.writeLine("ok!")
else
ls = nil
UPDATE: you need to do it this way to make it work correctly:
ls as IList<of int>? = List<of int>()
so i have marked the ticket as invalid