Skip to content

compiler crash #2798

Closed
Closed
@woruyu

Description

@woruyu

Bug description

mycode:
export class A{
private member_1_: typeOne = null;
public get member_1(): typeOne{
return 0;
}
}

const testClass = new A();
testClass.member_1.hello();

run:
asc xxx.ts --disableWarning --noEmit

result:
Whoops, the AssemblyScript compiler has crashed during compile :-(

Here is the stack trace hinting at the problem, perhaps it's useful?
AssertionError: assertion failed

If you see where the error is, feel free to send us a pull request. If not,
please let us know: https://github.com/AssemblyScript/assemblyscript/issues

Thank you!

expected behavior:
give me error message about my codes

Steps to reproduce

1.copy my codes to a file.
2. run asc to compile this file

AssemblyScript version

v0.27.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions