Skip to content

Commit 0cc73c6

Browse files
committed
Merge pull request #438 from smarter/fix/viewExists
Implicits#viewExists: return false after typer instead of AssertionError
2 parents c5d8cba + a40df05 commit 0cc73c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ trait Implicits { self: Typer =>
380380
override def viewExists(from: Type, to: Type)(implicit ctx: Context): Boolean = (
381381
!from.isError
382382
&& !to.isError
383+
&& !ctx.isAfterTyper
383384
&& (ctx.mode is Mode.ImplicitsEnabled)
384385
&& { from.widenExpr match {
385386
case from: TypeRef if defn.ScalaValueClasses contains from.symbol =>

0 commit comments

Comments
 (0)