File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ enum ErrorMessageID(val isActive: Boolean = true) extends java.lang.Enum[ErrorMe
235235 case CannotInstantiateQuotedTypeVarID // errorNumber: 219
236236 case DefaultShadowsGivenID // errorNumber: 220
237237 case RecurseWithDefaultID // errorNumber: 221
238- case EncodedPackageNameID // 222
238+ case EncodedPackageNameID // errorNumber: 222
239239
240240 def errorNumber = ordinal - 1
241241
Original file line number Diff line number Diff line change @@ -3754,10 +3754,10 @@ final class EncodedPackageName(name: Name)(using Context) extends SyntaxMsg(Enco
37543754 override protected def msg (using Context ): String =
37553755 i " The package name ` $name` will be encoded on the classpath, and can lead to undefined behaviour. "
37563756 override protected def explain (using Context ): String =
3757- i """ Tooling may not cope with directories whose names do not match their package name .
3758- |For example, `p-q` is encoded as `p $$ minusq` and written that way to the file system.
3757+ i """ Tools may not handle directories whose names differ from their corresponding package names .
3758+ |For example, `p-q` is encoded as `p $$ minusq` when written to the file system.
37593759 |
3760- |Package objects have names derived from their file names, so that names such as
3761- |`myfile.test.scala` and `myfile-test.scala` will result in encoded names for package objects.
3760+ |Package objects derive their names from the file names, so files such as `myfile.test.scala`
3761+ |or `myfile-test.scala` can produce encoded names for the generated package objects.
37623762 |
3763- |The name ` $name` is encoded to ` ${name.encode}`. """
3763+ |In this case, the name ` $name` is encoded as ` ${name.encode}`. """
Original file line number Diff line number Diff line change @@ -3890,8 +3890,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
38903890 def typedStats (stats : List [untpd.Tree ], exprOwner : Symbol )(using Context ): (List [Tree ], Context ) = {
38913891 val buf = new mutable.ListBuffer [Tree ]
38923892 var enumContexts : SimpleIdentityMap [Symbol , Context ] = SimpleIdentityMap .empty
3893- // A map from `enum` symbols to the contexts enclosing their definitions
38943893 val initialNotNullInfos = ctx.notNullInfos
3894+ // A map from `enum` symbols to the contexts enclosing their definitions
38953895 @ tailrec def traverse (stats : List [untpd.Tree ])(using Context ): (List [Tree ], Context ) = stats match {
38963896 case (imp : untpd.Import ) :: rest =>
38973897 val imp1 = typed(imp)
Original file line number Diff line number Diff line change 1010 |--------------------------------------------------------------------------------------------------------------------
1111 | Explanation (enabled by `-explain`)
1212 |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
13- | Tooling may not cope with directories whose names do not match their package name .
14- | For example, `p-q` is encoded as `p$minusq` and written that way to the file system.
13+ | Tools may not handle directories whose names differ from their corresponding package names .
14+ | For example, `p-q` is encoded as `p$minusq` when written to the file system.
1515 |
16- | Package objects have names derived from their file names, so that names such as
17- | `myfile.test.scala` and `myfile-test.scala` will result in encoded names for package objects.
16+ | Package objects derive their names from the file names, so files such as `myfile.test.scala`
17+ | or `myfile-test.scala` can produce encoded names for the generated package objects.
1818 |
19- | The name `i22670-macro$package` is encoded to `i22670$minusmacro$package`.
19+ | In this case, the name `i22670-macro$package` is encoded as `i22670$minusmacro$package`.
2020 --------------------------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments