File tree 2 files changed +13
-2
lines changed
compiler/src/dotty/tools/dotc/reporting 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,7 @@ object Message:
176
176
case param : TypeParamRef => ctx.typerState.constraint.contains(param)
177
177
case param : ParamRef => false
178
178
case skolem : SkolemType => true
179
- case sym : Symbol =>
180
- ctx.gadt.contains(sym) && ctx.gadt.fullBounds(sym) != TypeBounds .empty
179
+ case sym : Symbol => ctx.gadt.contains(sym) && ctx.gadt.fullBounds(sym) != TypeBounds .empty
181
180
}
182
181
183
182
val toExplain : List [(String , Recorded )] = seen.toList.flatMap { kvs =>
Original file line number Diff line number Diff line change
1
+ -- [E081] Type Error: tests/neg/i19334.scala:6:4 -----------------------------------------------------------------------
2
+ 6 | f(_) // error was OOM formatting TypeVar(TypeParamRef(T)) when offering explanations
3
+ | ^
4
+ | Missing parameter type
5
+ |
6
+ | I could not infer the type of the parameter _$1
7
+ | in expanded function:
8
+ | _$1 => f(_$1)
9
+ | Expected type for the whole anonymous function:
10
+ | T
11
+ |
12
+ | where: T is a type variable
You can’t perform that action at this time.
0 commit comments