Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected type representation reached the compiler backend #21359

Closed
torgeirsh opened this issue Aug 9, 2024 · 1 comment · Fixed by #21364
Closed

Unexpected type representation reached the compiler backend #21359

torgeirsh opened this issue Aug 9, 2024 · 1 comment · Fixed by #21364

Comments

@torgeirsh
Copy link

Compiler version

3.4.2

Minimized code

import scala.compiletime.constValueTuple
import scala.deriving.Mirror

case class Hello(a: Int)
val mirror = summon[Mirror.Of[Hello]]
val test = constValueTuple[mirror.MirroredElemTypes]

Output

[warn] an unexpected type representation reached the compiler backend while compiling <filename>: NoType. If possible, please file a bug on https://github.com/scala/scala3/issues
scala.MatchError: NoType (of class dotty.tools.dotc.core.Types$NoType$)
  | => cat dotty.tools.backend.jvm.BCodeHelpers.dotty$tools$backend$jvm$BCodeHelpers$$typeToTypeKind(BCodeHelpers.scala:764)
        at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.toTypeKind(BCodeHelpers.scala:202)
	at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.toTypeKind$(BCodeHelpers.scala:130)
        ... etc

Expectation

Successful compile, or an error message that doesn't tell me to file a bug report. :D

@torgeirsh torgeirsh added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Aug 9, 2024
@KacperFKorban KacperFKorban added itype:crash area:inline and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Aug 12, 2024
@KacperFKorban KacperFKorban self-assigned this Aug 12, 2024
@joan38
Copy link
Contributor

joan38 commented Aug 29, 2024

Getting the same error here

@jchyb jchyb closed this as completed in e9d4831 Sep 12, 2024
@WojciechMazur WojciechMazur added this to the 3.6.0 milestone Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants