Ticket #380 (new defect)
CIE caused by local var declaration "x as EnumType".
Reported by: | thriwkin | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.6 |
Keywords: | CIE | Cc: |
Description
Compiling this with Cobra svn:3116
class Program def main is shared x as PlatformID CobraCore.noOp(x)
causes this CIE:
error: COBRA INTERNAL ERROR / ArgumentOutOfRangeException / Index was out of range. Must be non-negative and less than the size of the collection.; Parameter name: index
The critical code pattern is:
def m x as T ...
where T references an enum which is defined in another assembly,
for example PlatformID, StringComparison, StringSplitOptions, ... .
Attachments
Change History
Note: See
TracTickets for help on using
tickets.