Skip to content

Commit 8cca3a0

Browse files
committed
Drop ConstrainResultDeep (1)
1 parent d878d2d commit 8cca3a0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/typer/ImportInfo.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Implicits.RenamedImplicitRef
1212
import config.SourceVersion
1313
import StdNames.nme
1414
import printing.Texts.Text
15-
import ProtoTypes.NoViewsAllowed.normalizedCompatible
1615
import Decorators._
1716

1817
object ImportInfo {

compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object ProtoTypes {
5555
val normTp = normalize(tp, pt)
5656
isCompatible(normTp, pt) || pt.isRef(defn.UnitClass) && normTp.isParameterless
5757

58-
if keepConstraint || ctx.mode.is(Mode.ConstrainResultDeep) then
58+
if keepConstraint then
5959
tp.widenSingleton match
6060
case poly: PolyType =>
6161
val newctx = ctx.fresh.setNewTyperState()

0 commit comments

Comments
 (0)