diff --git a/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala b/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala index 9348093533ca..1fdeacb3c998 100644 --- a/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala +++ b/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala @@ -46,7 +46,7 @@ class DottyPrimitives(ictx: Context) { * operation is an array get/set, we inspect the type of the receiver * to demux the operation. * - * @param fun The method symbol + * @param app The method symbol * @param tpe The type of the receiver object. It is used only for array * operations */ diff --git a/compiler/src/dotty/tools/dotc/cc/SepCheck.scala b/compiler/src/dotty/tools/dotc/cc/SepCheck.scala index 65aa2fdce124..20ff94c4d655 100644 --- a/compiler/src/dotty/tools/dotc/cc/SepCheck.scala +++ b/compiler/src/dotty/tools/dotc/cc/SepCheck.scala @@ -455,7 +455,7 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser: /** Report a failure where a capability is consumed in a loop. * @param ref the capability - * @param loc the position where the capability was consumed + * @param pos the position where the capability was consumed */ def consumeInLoopError(ref: Capability, pos: SrcPos)(using Context): Unit = report.error( diff --git a/compiler/src/dotty/tools/dotc/cc/Synthetics.scala b/compiler/src/dotty/tools/dotc/cc/Synthetics.scala index a32cb76fc127..1277edddcae9 100644 --- a/compiler/src/dotty/tools/dotc/cc/Synthetics.scala +++ b/compiler/src/dotty/tools/dotc/cc/Synthetics.scala @@ -58,7 +58,7 @@ object Synthetics: /** Transform the type of a method either to its type under capture checking * or back to its previous type. - * @param sym The method to transform @pre needsTransform(sym) must hold. + * @param symd The method to transform @pre needsTransform(sym) must hold. * @param info The possibly already mapped info of sym */ def transform(symd: SymDenotation, info: Type)(using Context): SymDenotation = diff --git a/compiler/src/dotty/tools/dotc/inlines/Inlines.scala b/compiler/src/dotty/tools/dotc/inlines/Inlines.scala index 83cdb5c1b26c..2dd86132fb97 100644 --- a/compiler/src/dotty/tools/dotc/inlines/Inlines.scala +++ b/compiler/src/dotty/tools/dotc/inlines/Inlines.scala @@ -96,7 +96,6 @@ object Inlines: * inline depth is exceeded. * * @param tree The call to inline - * @param pt The expected type of the call. * @return An `Inlined` node that refers to the original call and the inlined bindings * and body that replace it. */ diff --git a/compiler/src/dotty/tools/dotc/transform/AccessProxies.scala b/compiler/src/dotty/tools/dotc/transform/AccessProxies.scala index 820651f0ce04..cbf3437cdaad 100644 --- a/compiler/src/dotty/tools/dotc/transform/AccessProxies.scala +++ b/compiler/src/dotty/tools/dotc/transform/AccessProxies.scala @@ -132,7 +132,6 @@ abstract class AccessProxies { * access with a reference to the accessor. * * @param reference The original reference to the non-public symbol - * @param onLHS The reference is on the left-hand side of an assignment */ def useAccessor(reference: RefTree)(using Context): Tree = { val accessed = reference.symbol.asTerm diff --git a/compiler/src/dotty/tools/dotc/transform/init/Objects.scala b/compiler/src/dotty/tools/dotc/transform/init/Objects.scala index f844bb9f36a9..474ec4de7962 100644 --- a/compiler/src/dotty/tools/dotc/transform/init/Objects.scala +++ b/compiler/src/dotty/tools/dotc/transform/init/Objects.scala @@ -498,7 +498,7 @@ class Objects(using Context @constructorOnly): /** * The main procedure for searching through the outer chain * @param target The symbol to search for if `bySymbol = true`; otherwise the method symbol of the target environment - * @param scopeSet The set of scopes as starting point + * @param envSet The set of scopes as starting point * @return The scopes that contains symbol `target` or whose method is `target`, * and the value for `C.this` where C is the enclosing class of the result scopes */ diff --git a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala index 685721b7d575..9d1b644c02cc 100644 --- a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala +++ b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala @@ -304,7 +304,7 @@ object SpaceEngine { /** Is this an `'{..}` or `'[..]` irrefutable quoted patterns? * @param body The body of the quoted pattern - * @param bodyPt The scrutinee body type + * @param pt The scrutinee body type */ def isIrrefutableQuotePattern(pat: QuotePattern, pt: Type)(using Context): Boolean = { if pat.body.isType then pat.bindings.isEmpty && pt =:= pat.tpe