File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -294,10 +294,10 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
294
294
case ClassSymbol (cls) => i " $cls"
295
295
case Singleton (src, _) => i " $src"
296
296
297
- object MirrorSource :
297
+ private [ Synthesizer ] object MirrorSource :
298
298
299
299
/** 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
301
301
* the base elements required to generate a mirror.
302
302
*/
303
303
def reduce (mirroredType : Type )(using Context ): Either [String , MirrorSource ] = mirroredType match
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ package app {
13
13
val Bar : lib.Bar .type = lib.Bar
14
14
}
15
15
16
+
16
17
@ main def Test =
17
18
assert(summon[Mirror .Of [scala.Nil .type ]].fromProduct(EmptyTuple ) == Nil ) // alias scala 2 defined
18
19
assert(summon[Mirror .Of [lib.Foo .A .type ]].fromProduct(EmptyTuple ) == lib.Foo .A ) // real mirror
You can’t perform that action at this time.
0 commit comments