File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ object Formatting {
106
106
else nonSensicalStartTag + str + nonSensicalEndTag
107
107
}
108
108
109
- private type Recorded = AnyRef /*Symbol | TypeParamRef | SkolemType */
109
+ private type Recorded = AnyRef /*Symbol | ParamRef | SkolemType */
110
110
111
111
private class Seen extends mutable.HashMap[String, List[Recorded]] {
112
112
@@ -187,6 +187,7 @@ object Formatting {
187
187
private def explanations(seen: Seen)(implicit ctx: Context): String = {
188
188
def needsExplanation(entry: Recorded) = entry match {
189
189
case param: TypeParamRef => ctx.typerState.constraint.contains(param)
190
+ case param: TermParamRef => false
190
191
case skolem: SkolemType => true
191
192
case sym: Symbol =>
192
193
ctx.gadt.bounds.contains(sym) && ctx.gadt.bounds(sym) != TypeBounds.empty
Original file line number Diff line number Diff line change
1
+ object App {
2
+ type T[A <: ((a : A) => a.type)] = A
3
+ val a: T[_] = ??? // error
4
+ }
You can’t perform that action at this time.
0 commit comments