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
main, 3.3.5, probably any
(minimisation partially stolen from #22472)
@main def Test: Unit = { class FooSmall[A, B] { type C; type D } class FooLarge[A, B, C] { type D; type E } type FooUnion[A, B] = FooSmall[A, B] | FooLarge[A, B, B] println(Macro.typeMembers[FooUnion]) }
import scala.quoted.* object Macro { transparent inline def typeMembers[T <: AnyKind]: String = ${ typeMembersImpl[T] } def typeMembersImpl[T <: AnyKind: Type](using quotes: Quotes): Expr[String] = { import quotes.reflect.* Expr(TypeRepr.of[T].typeSymbol.typeMembers.toString) } }
List(val <none>, val <none>, val <none>, val <none>)
Return either an empty list, or actually existing Symbols, not sure (probably the second one).
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Compiler version
main, 3.3.5, probably any
Minimized code
(minimisation partially stolen from #22472)
Output
Expectation
Return either an empty list, or actually existing Symbols, not sure (probably the second one).
The text was updated successfully, but these errors were encountered: