Skip to content

Commit 5cd1cce

Browse files
committed
Review
1 parent 9b9c9f8 commit 5cd1cce

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

compiler/src/dotty/tools/dotc/quoted/QuoteContextImpl.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ object QuoteContextImpl {
5050
}
5151

5252
class 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

compiler/src/dotty/tools/dotc/transform/TailRec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)