Skip to content

Commit ced0f6c

Browse files
committed
address review comments
1 parent 3ea6b24 commit ced0f6c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Synthesizer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
294294
case ClassSymbol(cls) => i"$cls"
295295
case Singleton(src, _) => i"$src"
296296

297-
object MirrorSource:
297+
private[Synthesizer] object MirrorSource:
298298

299299
/** Reduces a mirroredType to either its most specific ClassSymbol,
300-
* or a TermRef to a singleton value, these are
300+
* or a TermRef to a singleton value. These are
301301
* the base elements required to generate a mirror.
302302
*/
303303
def reduce(mirroredType: Type)(using Context): Either[String, MirrorSource] = mirroredType match

tests/run/i15234.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ package app {
1313
val Bar: lib.Bar.type = lib.Bar
1414
}
1515

16+
1617
@main def Test =
1718
assert(summon[Mirror.Of[scala.Nil.type]].fromProduct(EmptyTuple) == Nil) // alias scala 2 defined
1819
assert(summon[Mirror.Of[lib.Foo.A.type]].fromProduct(EmptyTuple) == lib.Foo.A) // real mirror

0 commit comments

Comments
 (0)