File tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ object SymDenotations {
798
798
*/
799
799
/** The class implementing this module, NoSymbol if not applicable. */
800
800
final def moduleClass (implicit ctx : Context ): Symbol = {
801
- def notFound = { println(s " missing module class for $name: $myInfo" ); NoSymbol }
801
+ def notFound = { completions. println(s " missing module class for $name: $myInfo" ); NoSymbol }
802
802
if (this is ModuleVal )
803
803
myInfo match {
804
804
case info : TypeRef => info.symbol
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ object Implicits {
60
60
61
61
/** Return those references in `refs` that are compatible with type `pt`. */
62
62
protected def filterMatching (pt : Type )(implicit ctx : Context ): List [Candidate ] = track(" filterMatching" ) {
63
- val ptNorm = normalize(pt, pt) // `pt` could be implicit function types, check i2749
64
63
65
64
def refMatches (ref : TermRef )(implicit ctx : Context ) = /* ctx.traceIndented(i"refMatches $ref $pt")*/ {
66
65
@@ -124,8 +123,10 @@ object Implicits {
124
123
record(" discarded eligible" )
125
124
false
126
125
}
127
- else
126
+ else {
127
+ val ptNorm = normalize(pt, pt) // `pt` could be implicit function types, check i2749
128
128
NoViewsAllowed .isCompatible(normalize(ref, pt), ptNorm)
129
+ }
129
130
}
130
131
}
131
132
You can’t perform that action at this time.
0 commit comments