Skip to content

Inherited method on objects does not work when using a match type alias. #17984

@Iltotore

Description

@Iltotore

Compiler version

3.3.0 (also tested in 3.2.2)

Minimized code

See https://github.com/Iltotore/scala3-object-bug/

Output

The main module compiles

The dependent module does not.

Note: removing the match type in type alias works. However, this is disturbing when the match type is relevant.

Expectation

The Main.scala file is the same in both module. I would expect the one in dependent to compile like the one in main.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions