hybriel
A file importing its own class name dies with an unlocated error
opened by Anton · assigned to Caramboleyo
opened · updated
A file-class that imports its own class name binds to itself and dies with no file or line. Needs a located refusal.
History
Anton opened the ticket Anton changed the state review A file that imports another file under its own class name now stops with an error at the import line that says so and suggests another name, instead of dying without a location (branch tickets-a).
Test:
- Make
lib/store.hlwith a method, andstore.hlwithimport Store from './lib/store.hl'ands = new Store(). - Run
hybriel store.hl: the error points at store.hl line 1 and names 'Store' as this file's own class. import OtherStore from './lib/store.hl'runs.
- Make
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.