Wiki

Ticket #2 (accepted defect)

Opened 17 years ago

Last modified 17 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:

Description

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 17 years ago by Chuck

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

Changed 17 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.