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
any, main
import scala.quoted._ inline def test() = ${testImpl} def testImpl(using Quotes) = { import quotes.reflect._ val fooSymbol = TypeRepr.of[Foo[Int]].typeSymbol val nestedSymbol = fooSymbol.typeMember("Nested") println(TypeRepr.of[Foo[Int]].memberType(nestedSymbol)) '{()} } trait Foo[X]: sealed abstract class Nested extends Foo[Int]
@main def Test = test()
ClassInfo(AppliedType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class <root>)),module class <empty>)),Foo),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Int))), class Nested, List(TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class Object), AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class <empty>)),trait Foo),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),class Int)))))
ClassInfo should not be exposed in the Quotes reflect API, instead we should get a TypeRef, like. in other similar situations:
TypeRef(AppliedType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class <root>)),module class <empty>)),Foo),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object scala),Int))),class Nested)
Found by @Florian3k, fix needed for Scaladoc
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Compiler version
any, main
Minimized code
Output
Expectation
ClassInfo should not be exposed in the Quotes reflect API, instead we should get a TypeRef, like. in other similar situations:
Found by @Florian3k, fix needed for Scaladoc
The text was updated successfully, but these errors were encountered: