@@ -2540,11 +2540,11 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
2540
2540
def newMethod (owner : Symbol , name : String , tpe : TypeRepr ): Symbol =
2541
2541
newMethod(owner, name, tpe, Flags .EmptyFlags , noSymbol)
2542
2542
def newMethod (owner : Symbol , name : String , tpe : TypeRepr , flags : Flags , privateWithin : Symbol ): Symbol =
2543
- assert (! privateWithin.exists || privateWithin.isType, " privateWithin must be a type symbol or `Symbol.noSymbol`" )
2543
+ xCheckMacroAssert (! privateWithin.exists || privateWithin.isType, " privateWithin must be a type symbol or `Symbol.noSymbol`" )
2544
2544
checkValidFlags(flags.toTermFlags, Flags .validMethodFlags)
2545
2545
dotc.core.Symbols .newSymbol(owner, name.toTermName, flags | dotc.core.Flags .Method , tpe, privateWithin)
2546
2546
def newVal (owner : Symbol , name : String , tpe : TypeRepr , flags : Flags , privateWithin : Symbol ): Symbol =
2547
- assert (! privateWithin.exists || privateWithin.isType, " privateWithin must be a type symbol or `Symbol.noSymbol`" )
2547
+ xCheckMacroAssert (! privateWithin.exists || privateWithin.isType, " privateWithin must be a type symbol or `Symbol.noSymbol`" )
2548
2548
checkValidFlags(flags.toTermFlags, Flags .validValFlags)
2549
2549
dotc.core.Symbols .newSymbol(owner, name.toTermName, flags, tpe, privateWithin)
2550
2550
def newBind (owner : Symbol , name : String , flags : Flags , tpe : TypeRepr ): Symbol =
0 commit comments