File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ object RefChecks {
5252 }}
5353
5454 for (name <- defaultMethodNames) {
55- val methods = clazz.info .member(name).alternatives.map(_.symbol)
55+ val methods = clazz.thisType .member(name).alternatives.map(_.symbol)
5656 val haveDefaults = methods.filter(_.hasDefaultParams)
5757 if (haveDefaults.length > 1 ) {
5858 val owners = haveDefaults map (_.owner)
Original file line number Diff line number Diff line change 1+ trait GenericCollectionWithCommands {
2+ self : PackSupport =>
3+
4+ def bar (foo : Int = 1 ): Any = ???
5+ def bar (writer : GenericCollectionWithCommands .this .pack.Writer [Any ]): Any = ???
6+ }
7+
8+ trait PackSupport {
9+ val pack : SerializationPack
10+ }
11+
12+ trait SerializationPack {
13+ type Writer [A ]
14+ }
You can’t perform that action at this time.
0 commit comments