Skip to content

Accept resolved scalar type aliases in Whale programs #875

Closed

Description

@LunaStev

Motivation

At fd07427f4a976de05e38eff3ee1760db97fbb761 on Linux amd64 with Rust 1.89 and locked Whale 020d2a4, lexing, parsing and TypedProgram lowering succeed, but calling whale::emit_ir on this source returns Whale backend does not yet support non-function top-level declarations:

type Number = i32; fun main() -> Number { return 0; }

Scope

Handle compile-time TypeAlias metadata and consume existing HIR canonical types for signatures and expressions. Do not reinterpret aliases in the backend or broadly accept unsupported top-level storage. Starting point: whale/src/codegen/mod.rs.

Difficulty: medium.

Completion criteria

  • Accept used and unused scalar aliases, including alias chains.
  • Verify equivalent scalar IR after HIR canonicalization.
  • Keep unsupported aggregate aliases diagnostic.

Activity

  1. added
    enhancement
    help wanted
    on Oct 7, 2026
  2. self-assigned this
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions