tokiwa-software / fuzion

The Fuzion Language Implementation
https://fuzion-lang.dev
GNU General Public License v3.0
48 stars 11 forks source link

can not fully qualify inheritance calls #4233

Closed michaellilltokiwa closed 4 days ago

michaellilltokiwa commented 5 days ago
ex =>

  a : universe.Sequence i32 is
/home/not_synced/fuzion (2024-11-21T15-39-12+01-00)$ make base-only && fz ~/playground/test.fz

/home/sam/playground/test.fz:3:7: error 1: Syntax error: expected semicolon ';', found keyword 'universe'
  a : universe.Sequence i32 is

While parsing: semicolon or flat line break, parse stack: semiOrFlatLF, exprs, block, implRout, implFldOrRout, routOrField, feature, expr, exprs, block, unit

/home/sam/playground/test.fz:3:29: error 2: Syntax error: expected semicolon ';', found keyword 'is'
  a : universe.Sequence i32 is

While parsing: semicolon or flat line break, parse stack: semiOrFlatLF, exprs, block, implRout, implFldOrRout, routOrField, feature, expr, exprs, block, unit

/home/sam/playground/test.fz:3:3: error 3: Could not find called feature
  a : universe.Sequence i32 is

Feature not found: 'a' (no arguments)
Target feature: 'ex'
In call: 'a'

/home/sam/playground/test.fz:3:16: error 4: Expression produces result of type 'Sequence i32' but result is not used.
  a : universe.Sequence i32 is

To solve this, use the result, explicitly ignore the result '_ := <expression>' or change 'Sequence' from constructor to routine by replacing 'is' by '=>'.

4 errors.