amber-lang/amber

[BUG] import { * } from "b.ab" error

Opened this issue · 1 comments

This line of code:

import { * } from "b.ab"

Generate this:

Identifier 'import' is a reserved keyword
at ./a.ab:1:1


1| import { * } from "b.ab"

Instead the right code is:

import * from "b.ab"

The error should give better hints about the error.

b1ek commented

it should print something like this, then:

import { * } from "b.ab"
       ^^^^^
Identified is blah blah blah
at file.ab:12345:4

Did you mean import * from "b.ab" ?