File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ object QuoteContextImpl {
5050}
5151
5252class QuoteContextImpl private (ctx : Context ) extends QuoteContext :
53- // NOTE: The tasty class should only mixin the compiler interface and the reflection interface.
54- // We should not implement methods here, all should be implemented by `ReflectionCompilerInterface`
53+
5554 object tasty extends scala.tasty.Reflection , scala.internal.tasty.CompilerInterface :
5655
5756 def rootContext : Context = ctx
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ class TailRec extends MiniPhase {
186186 def tailArgOrPureExpr (stat : Tree ): Boolean = stat match {
187187 case stat : ValDef if stat.name.is(TailTempName ) || ! stat.symbol.is(Mutable ) => tailArgOrPureExpr(stat.rhs)
188188 case Assign (lhs : Ident , rhs) if lhs.symbol.name.is(TailLocalName ) => tailArgOrPureExpr(rhs)
189- case Assign (lhs : Ident , rhs : Ident ) if lhs.symbol == rhs.symbol => true
189+ case Assign (lhs : Ident , rhs : Ident ) => lhs.symbol == rhs.symbol
190190 case stat : Ident if stat.symbol.name.is(TailLocalName ) => true
191191 case _ => tpd.isPureExpr(stat)
192192 }
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ trait Reflection { reflection =>
248248
249249 // ClassDef
250250
251- /** Tree representing a class definition. This includes annonymus class definitions and the class of a module object */
251+ /** Tree representing a class definition. This includes anonymous class definitions and the class of a module object */
252252 type ClassDef <: Definition
253253
254254 given TypeTest [Tree , ClassDef ] = ClassDefTypeTest
You can’t perform that action at this time.
0 commit comments