Forums

nilable list can not be compared to nil

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Re: nilable list can not be compared to nil

Postby Charles » Mon Nov 23, 2009 2:42 am

Yeah, I think you're correct. Right now it actually only works for generics!
class X

def main
t = List<of int>?()
assert t.count == 0
s = String?() # error: error: Expecting an expression.
assert s.length == 0
Charles
 
Posts: 2515
Location: Los Angeles, CA

Previous

Return to Discussion

Who is online

Users browsing this forum: No registered users and 31 guests