Skip to content

wac-parser not checking for type declaration conflicting with previous export #76

@peterhuene

Description

@peterhuene

The following wac:

package test:comp;

let foo = new foo:bar {};

export foo as i;

interface i {
}

causes a panic in wac-parser:

thread 'main' panicked at crates/wac-parser/src/resolution/ast.rs:355:9:
assertion failed: prev.is_none()

This is because wac-parser is not emitting an error for the type declaration conflicting with the previous export.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions