diff --git a/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala b/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala index bd4ef73d6eea..d420fe78107e 100644 --- a/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala +++ b/compiler/src/dotty/tools/dotc/transform/CheckUnused.scala @@ -624,7 +624,7 @@ object CheckUnused: symbol.name.mangledString.contains("$") /** - * Is the the constructor of synthetic package object + * Is the constructor of synthetic package object * Should be ignored as it is always imported/used in package * Trigger false negative on used import * diff --git a/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala b/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala index c623f4f9fd8a..845210a033c6 100644 --- a/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala @@ -504,7 +504,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context): else refineAtPrefix(childPre, childClass, childClass.primaryConstructor.info) match case info: PolyType => - // Compute the the full child type by solving the subtype constraint + // Compute the full child type by solving the subtype constraint // `C[X1, ..., Xn] <: P`, where // // - P is the current `mirroredType` diff --git a/compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala b/compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala index 763f996c89e7..381f250078b3 100644 --- a/compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala +++ b/compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala @@ -26,7 +26,7 @@ import dotty.tools.dotc.util.optional * - `isClosedUnder(x1, .., xn)('{e})` returns true if and only if all the references in `e` to names defined in the pattern are contained in the set `{x1, ... xn}`. * - `lift(x1, .., xn)('{e})` returns `(y1, ..., yn) => [xi = $yi]'{e}` where `yi` is an `Expr` of the type of `xi`. * - `withEnv(x1 -> y1, ..., xn -> yn)(matching)` evaluates matching recording that `xi` is equivalent to `yi`. - * - `matched` denotes that the the match succeeded and `matched('{e})` denotes that a match succeeded and extracts `'{e}` + * - `matched` denotes that the match succeeded and `matched('{e})` denotes that a match succeeded and extracts `'{e}` * - `&&&` matches if both sides match. Concatenates the extracted expressions of both sides. * * Note: that not all quoted terms bellow are valid expressions diff --git a/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala b/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala index f5a9559dffc9..f2e64b5fad62 100644 --- a/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala +++ b/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala @@ -26,7 +26,7 @@ class BashExitCodeTests: s"expected $expectedExitCode but got $exitCode${pp("out", stdout)}${pp("err", stderr)}" }, expectedExitCode, exitCode) - // Helpers for running scala, scalac, and scalac without the the output directory ("raw") + // Helpers for running scala, scalac, and scalac without the output directory ("raw") def scala(args: String*) = verifyExit(scalaPath, args*) def scalacRaw(args: String*) = verifyExit(scalacPath, args*) def scalac(args: String*) = scalacRaw(("-d" +: tmpDir +: args)*) diff --git a/staging/src/scala/quoted/staging/Compiler.scala b/staging/src/scala/quoted/staging/Compiler.scala index 9ca994b6eb8f..98facb14b0d8 100644 --- a/staging/src/scala/quoted/staging/Compiler.scala +++ b/staging/src/scala/quoted/staging/Compiler.scala @@ -11,7 +11,7 @@ trait Compiler: object Compiler: - /** Create a new instance of the compiler using the the classloader of the application. + /** Create a new instance of the compiler using the classloader of the application. * * Usage: * ``` diff --git a/tests/neg-macros/tasty-macro-error/quoted_1.scala b/tests/neg-macros/tasty-macro-error/quoted_1.scala index b395ec4c240b..8a4c45e46c89 100644 --- a/tests/neg-macros/tasty-macro-error/quoted_1.scala +++ b/tests/neg-macros/tasty-macro-error/quoted_1.scala @@ -6,7 +6,7 @@ object Macros { def impl(x: Expr[Any])(using Quotes) : Expr[Unit] = { import quotes.reflect.* - report.error("here is the the argument is " + x.asTerm.underlyingArgument.show, x.asTerm.underlyingArgument.pos) + report.error("here is the argument is " + x.asTerm.underlyingArgument.show, x.asTerm.underlyingArgument.pos) '{} } diff --git a/tests/neg-macros/tasty-macro-positions/quoted_1.scala b/tests/neg-macros/tasty-macro-positions/quoted_1.scala index b77373baa21c..a64e575a8d4d 100644 --- a/tests/neg-macros/tasty-macro-positions/quoted_1.scala +++ b/tests/neg-macros/tasty-macro-positions/quoted_1.scala @@ -7,8 +7,8 @@ object Macros { def impl(x: Expr[Any])(using Quotes) : Expr[Unit] = { import quotes.reflect.* val pos = x.asTerm.underlyingArgument.pos - report.error("here is the the argument is " + x.asTerm.underlyingArgument.show, pos) - report.error("here (+5) is the the argument is " + x.asTerm.underlyingArgument.show, Position(pos.sourceFile, pos.start + 5, pos.end + 5)) + report.error("here is the argument is " + x.asTerm.underlyingArgument.show, pos) + report.error("here (+5) is the argument is " + x.asTerm.underlyingArgument.show, Position(pos.sourceFile, pos.start + 5, pos.end + 5)) '{} } diff --git a/tests/pos-with-compiler-cc/dotc/typer/Synthesizer.scala b/tests/pos-with-compiler-cc/dotc/typer/Synthesizer.scala index 7bc9619922db..034b9c4b0044 100644 --- a/tests/pos-with-compiler-cc/dotc/typer/Synthesizer.scala +++ b/tests/pos-with-compiler-cc/dotc/typer/Synthesizer.scala @@ -498,7 +498,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context): else refineAtPrefix(childPre, childClass, childClass.primaryConstructor.info) match case info: PolyType => - // Compute the the full child type by solving the subtype constraint + // Compute the full child type by solving the subtype constraint // `C[X1, ..., Xn] <: P`, where // // - P is the current `mirroredType`