Skip to content

[Typecheck] Redundant check of invalid type annotation #60

@aosen-xiong

Description

@aosen-xiong

In type check, the inivalid type annotation should all be checked validator. However, the visitor also check for invalid annotation at https://github.com/Ao-senXiong/immutability/blob/07f7ee903d48d08c034b522b14feb680c1195cc5/src/main/java/pico/typecheck/PICONoInitVisitor.java#L391. Think about how to unify them and move to validator.

Why? Because there are redundant error messages that might cause confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions