File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2591,8 +2591,8 @@ object TypeComparer {
2591
2591
def addLow : Repr = approx | LoApprox
2592
2592
def addHigh : Repr = approx | HiApprox
2593
2593
def show : String =
2594
- val lo = if low then " (left is tightened )" else " "
2595
- val hi = if high then " (right is tigthened )" else " "
2594
+ val lo = if low then " (left is approximated )" else " "
2595
+ val hi = if high then " (right is approximated )" else " "
2596
2596
lo ++ hi
2597
2597
end ApproxState
2598
2598
type ApproxState = ApproxState .Repr
Original file line number Diff line number Diff line change @@ -128,14 +128,14 @@ object ErrorReporting {
128
128
val c = ctx.typerState.constraint
129
129
val constraintText =
130
130
if c.domainLambdas.isEmpty then
131
- " empty constraint"
131
+ " the empty constraint"
132
132
else
133
- i """ following constraint:
133
+ i """ a constraint with :
134
134
| ${c.contentsToString}"""
135
135
i """
136
136
| ${TypeComparer .explained(_.isSubType(found, expected), header)}
137
137
|
138
- |The tests were made under the $constraintText"""
138
+ |The tests were made under $constraintText"""
139
139
140
140
/** Format `raw` implicitNotFound or implicitAmbiguous argument, replacing
141
141
* all occurrences of `${X}` where `X` is in `paramNames` with the
You can’t perform that action at this time.
0 commit comments