class X
def main
t = List<of int>?()
assert t.count == 0
s = String?() # error: error: Expecting an expression.
assert s.length == 0
Forums
nilable list can not be compared to nil
11 posts
• Page 2 of 2 • 1, 2
Re: nilable list can not be compared to nil
Yeah, I think you're correct. Right now it actually only works for generics!
- Charles
- Posts: 2515
- Location: Los Angeles, CA
11 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 31 guests