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 {
52
52
}}
53
53
54
54
for (name <- defaultMethodNames) {
55
- val methods = clazz.info .member(name).alternatives.map(_.symbol)
55
+ val methods = clazz.thisType .member(name).alternatives.map(_.symbol)
56
56
val haveDefaults = methods.filter(_.hasDefaultParams)
57
57
if (haveDefaults.length > 1 ) {
58
58
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