We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.7.0 (and earlier and later) Found when working on scaladoc
object Test: type R = { type T; val x: Int; type U <: this.T; } def main() = Macro.show[R]
import scala.quoted._ object Macro: inline def show[T] = ${ showImpl[T] } def showImpl[T: Type](using Quotes): Expr[Unit] = import quotes.reflect._ println(TypeRepr.of[T].dealias.show(using Printer.TypeReprStructure)) '{()}
-- Error: /Users/jchyb/workspace/scala3/Test.scala:5:25 ------------------------- 5 | def main() = Macro.show[R] | ^^^^^^^^^^^^^ | Exception occurred while executing macro expansion. | java.lang.StackOverflowError | |----------------------------------------------------------------------------- |Inline stack trace |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |This location contains code that was inlined from Macro.scala:3 3 | inline def show[T] = ${ showImpl[T] } | ^^^^^^^^^^^^^^^^ -----------------------------------------------------------------------------
No error
The text was updated successfully, but these errors were encountered:
Looks like a duplicate of #22649, with a proposed fix in #22859.
Sorry, something went wrong.
No branches or pull requests
Compiler version
3.7.0 (and earlier and later)
Found when working on scaladoc
Minimized code
Output
Expectation
No error
The text was updated successfully, but these errors were encountered: