Skip to content

Commit cb93ee7

Browse files
committed
Add missing case in Formatter
1 parent 9c96800 commit cb93ee7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/src/dotty/tools/dotc/printing/Formatting.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ object Formatting {
167167
entry match {
168168
case param: TypeParamRef =>
169169
s"is a type variable${addendum("constraint", ctx.typeComparer.bounds(param))}"
170+
case param: TermParamRef =>
171+
s"is a reference to a value parameter"
170172
case sym: Symbol =>
171173
val info =
172174
if (ctx.gadt.bounds.contains(sym))

tests/neg/parser-stability-4.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class x0{
2+
def x0: x0 = (x0 => x0) => x0) // error // error

0 commit comments

Comments
 (0)