File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -948,6 +948,7 @@ class Namer { typer: Typer =>
948948 sym.is(ImplicitOrImplied ) == exp.impliedOnly &&
949949 sym.isAccessibleFrom(path.tpe) &&
950950 ! sym.isConstructor &&
951+ ! sym.is(ModuleClass ) &&
951952 ! cls.derivesFrom(sym.owner)
952953
953954 /** Add a forwarder with name `alias` or its type name equivalent to `mbr`,
@@ -981,7 +982,7 @@ class Namer { typer: Typer =>
981982 ctx.newSymbol(
982983 cls, alias,
983984 Method | Final | mbr.symbol.flags & ImplicitOrImplied ,
984- mbr.info,
985+ mbr.info.ensureMethodic ,
985986 coord = span)
986987 val forwarderDef =
987988 if (forwarder.isType) tpd.TypeDef (forwarder.asType)
Original file line number Diff line number Diff line change 1+ config
2+ printing
3+ scanning
4+ config
Original file line number Diff line number Diff line change 11object Test extends App {
22
3- case class Config ()
3+ case class Config () {
4+ println(" config" )
5+ }
46
57 class Printer {
68 def print () = println(" printing" )
7- implied config for Config ()
9+ object cfg extends Config
10+ implied config for Config
811 }
912
1013 class Scanner {
@@ -23,6 +26,7 @@ object Test extends App {
2326
2427 Copier .print()
2528 Copier .scanIt()
29+ Copier .cfg
2630 Copier .config
2731 Copier .config2
2832}
You can’t perform that action at this time.
0 commit comments