Wiki

Ticket #355 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Internal error with -namespace option

Reported by: nerdzero Owned by: Charles
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.9.6
Keywords: internal error, args, namespace Cc:

Description

An internal compiler error is triggered when the -namespace option is used and the value has the same name as a declaration in the source code.

@args -namespace:Program

class Program
    def main
        print 'hola!'
error: COBRA INTERNAL ERROR / Exception / In (global) there is a already non-namespace declaration named "Program"

Change History

Changed 4 years ago by hopscc

Looks like a weird little order of evaluation issue since normal namespace dcl works fine...

Changed 4 years ago by Charles

  • owner set to Charles
  • status changed from new to assigned

Changed 4 years ago by Charles

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in changeset:3099

Note: See TracTickets for help on using tickets.