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
issue referenced by #20347 (comment)
any
(code taken from tests/pos-macros/quote-sym-newboundedtype https://github.com/scala/scala3/blob/f7f51edb424b281f751a9a47ea2397d5cf5b0343/tests/pos-macros/quote-sym-newboundedtype/Macro_1.scala)
tests/pos-macros/quote-sym-newboundedtype
import scala.quoted._ inline def testMacro = ${ testImpl } def testImpl(using Quotes): Expr[Unit] = import quotes.reflect.* val sym = Symbol.newBoundedType(Symbol.spliceOwner, "tpe", Flags.EmptyFlags, TypeBounds.lower(TypeRepr.of[String]), Symbol.noSymbol) val typeDef = TypeDef(sym) println(typeDef.show) '{()}
def main() = testMacro
type tpe
type tpe <: String
The text was updated successfully, but these errors were encountered:
No branches or pull requests
issue referenced by #20347 (comment)
Compiler version
any
Minimized code
(code taken from
tests/pos-macros/quote-sym-newboundedtype
https://github.com/scala/scala3/blob/f7f51edb424b281f751a9a47ea2397d5cf5b0343/tests/pos-macros/quote-sym-newboundedtype/Macro_1.scala)Output
Expectation
The text was updated successfully, but these errors were encountered: