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 450863e commit 5c9435eCopy full SHA for 5c9435e
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 NameKinds.QualifiedName
17
import Decorators._
18
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