Skip to content

Commit

Permalink
Merge pull request #2849 from dotty-staging/fix-implicits
Browse files Browse the repository at this point in the history
Fix crash when compiling collection strawman.
  • Loading branch information
smarter authored Jul 11, 2017
2 parents c6fb9cf + f2158c1 commit 1e589ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/SymDenotations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ object SymDenotations {
*/
/** The class implementing this module, NoSymbol if not applicable. */
final def moduleClass(implicit ctx: Context): Symbol = {
def notFound = { println(s"missing module class for $name: $myInfo"); NoSymbol }
def notFound = { completions.println(s"missing module class for $name: $myInfo"); NoSymbol }
if (this is ModuleVal)
myInfo match {
case info: TypeRef => info.symbol
Expand Down
5 changes: 3 additions & 2 deletions compiler/src/dotty/tools/dotc/typer/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ object Implicits {

/** Return those references in `refs` that are compatible with type `pt`. */
protected def filterMatching(pt: Type)(implicit ctx: Context): List[Candidate] = track("filterMatching") {
val ptNorm = normalize(pt, pt) // `pt` could be implicit function types, check i2749

def refMatches(ref: TermRef)(implicit ctx: Context) = /*ctx.traceIndented(i"refMatches $ref $pt")*/ {

Expand Down Expand Up @@ -124,8 +123,10 @@ object Implicits {
record("discarded eligible")
false
}
else
else {
val ptNorm = normalize(pt, pt) // `pt` could be implicit function types, check i2749
NoViewsAllowed.isCompatible(normalize(ref, pt), ptNorm)
}
}
}

Expand Down

0 comments on commit 1e589ac

Please sign in to comment.