Skip to content

Quotes printer doesn't support ErrorType #13942

Open
@cchantep

Description

@cchantep

Compiler version

3.1.2-RC1-bin-20211022-f7abd32-NIGHTLY

Minimized code

import scala.quoted.*

import dotty.tools.dotc.core.Types.UnspecifiedErrorType

val tpe = UnspecifiedErrorType.asInstanceOf[TypeRepr]

tpe.show

Output

Exception occurred while executing macro expansion.
   scala.MatchError: dotty.tools.dotc.core.Types$PreviousErrorType@614b58f4 (of class dotty.tools.dotc.core.Types$PreviousErrorType)
   	at scala.quoted.runtime.impl.printers.Extractors$ExtractorsPrinter.visitType(Extractors.scala:242)

Expectation

Successfully print the type representation

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