We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d878d2d commit 8cca3a0Copy full SHA for 8cca3a0
compiler/src/dotty/tools/dotc/typer/ImportInfo.scala
@@ -12,7 +12,6 @@ import Implicits.RenamedImplicitRef
12
import config.SourceVersion
13
import StdNames.nme
14
import printing.Texts.Text
15
-import ProtoTypes.NoViewsAllowed.normalizedCompatible
16
import Decorators._
17
18
object ImportInfo {
compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -55,7 +55,7 @@ object ProtoTypes {
55
val normTp = normalize(tp, pt)
56
isCompatible(normTp, pt) || pt.isRef(defn.UnitClass) && normTp.isParameterless
57
58
- if keepConstraint || ctx.mode.is(Mode.ConstrainResultDeep) then
+ if keepConstraint then
59
tp.widenSingleton match
60
case poly: PolyType =>
61
val newctx = ctx.fresh.setNewTyperState()
0 commit comments