Skip to content

Commit 69a0acb

Browse files
authored
Merge pull request #558 from scala/backport-lts-3.3-23691
Backport "Replace internal tab char in comment in Synthesizer.scala" to 3.3 LTS
2 parents 1ee112d + 88c775b commit 69a0acb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
3737
// bounds are usually widened during instantiation.
3838
instArg(tp.tp1)
3939
case tvar: TypeVar if ctx.typerState.constraint.contains(tvar) =>
40-
// If tvar has a lower or upper bound:
41-
// 1. If the bound is not another type variable, use this as approximation.
42-
// 2. Otherwise, if the type can be forced to be fully defined, use that type
43-
// as approximation.
44-
// 3. Otherwise leave argument uninstantiated.
45-
// The reason for (2) is that we observed complicated constraints in i23611.scala
46-
// that get better types if a fully defined type is computed than if several type
47-
// variables are approximated incrementally. This is a minimization of some ZIO code.
48-
// So in order to keep backwards compatibility (where before we _only_ did 2) we
49-
// add that special case.
40+
// If tvar has a lower or upper bound:
41+
// 1. If the bound is not another type variable, use this as approximation.
42+
// 2. Otherwise, if the type can be forced to be fully defined, use that type
43+
// as approximation.
44+
// 3. Otherwise leave argument uninstantiated.
45+
// The reason for (2) is that we observed complicated constraints in i23611.scala
46+
// that get better types if a fully defined type is computed than if several type
47+
// variables are approximated incrementally. This is a minimization of some ZIO code.
48+
// So in order to keep backwards compatibility (where before we _only_ did 2) we
49+
// add that special case.
5050
def isGroundConstr(tp: Type): Boolean = tp.dealias match
5151
case tvar: TypeVar if ctx.typerState.constraint.contains(tvar) => false
5252
case pref: TypeParamRef if ctx.typerState.constraint.contains(pref) => false

0 commit comments

Comments
 (0)