Ticket #2 (accepted defect)

Opened 10 months ago

Last modified 10 months 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 10 months ago by Chuck

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

Changed 10 months 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.