Skip to content

Compiler hang forever when arbitrary type in arrow closure #8746

Closed
@deusaquilus

Description

@deusaquilus

Minimized code

When attempting a quoted match an arrow closure with arbitrary types in a macro:

tree.unseal.underlyingArgument.seal match {
    case '{ ($in: $tpe1) => ($out: $tpe2) } => Expr(out.toString)
}

E.g. when matching the following expression:

mac((x: String) => "anything")

The compiler hangs forever. It does not seem to be doing anything.

Expectation

The expression should match and compile property.

Code Sample

Code sample is available here:
https://github.com/deusaquilus/arrow_forever_bug

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