Ticket #2 (accepted defect)

Opened 11 years ago

Last modified 11 years ago

Cannot use "x in someList" where x is dynamic?

Reported by: Chuck.Esterbrook Owned by: Chuck
Priority: minor Milestone:
Component: component1 Version:
Keywords: Cc:


class X

def main is shared

x = 2 to dynamic?
assert (x to int) in [1, 2, 3] # works
assert x in [1, 2, 3] # error: Cannot convert type "int?" to "int"

Change History

Changed 11 years ago by Chuck

  • owner changed from somebody to Chuck.Esterbrook
  • status changed from new to accepted

Changed 11 years ago by Chuck

This may be related to Cobra's treatment of DLLs where argument types are wrapped by NilableType. This breaks down for generic types like List<of T>.

Note: See TracTickets for help on using tickets.