Boo

Add information to duplicate name on types

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.7.5
  • Component/s: Compiler
  • Labels:
    None
  • Environment:
    Windows
  • Number of attachments :
    0

Description

The following code:

namespace test

class a:
pass

class a:
pass

Cause this error:

BCE0011: An error occurred during the execution of the step 'Boo.Lang.Compiler.Steps.EmitAssembly': 'Duplicate type name within an assembly.'.

No information is given about the location of the error or which types are duplicate.

Add type information, and file name and location.

Issue Links

Activity

Hide
Rodrigo B. de Oliveira added a comment -

If we decide to go with the 'open classes' approach, this code will be legal.

Show
Rodrigo B. de Oliveira added a comment - If we decide to go with the 'open classes' approach, this code will be legal.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: