Skip to content

Commit a962495

Browse files
smarterfelixmulder
authored andcommitted
TastyPrinter: fix LambdaType printing
1 parent a7deb9f commit a962495

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dotty/tools/dotc/core/tasty/TastyFormat.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ object TastyFormat {
478478
case ORtype => "ORtype"
479479
case BYNAMEtype => "BYNAMEtype"
480480
case POLYtype => "POLYtype"
481+
case LAMBDAtype => "LAMBDAtype"
481482
case METHODtype => "METHODtype"
482483
case PARAMtype => "PARAMtype"
483484
case ANNOTATION => "ANNOTATION"

src/dotty/tools/dotc/core/tasty/TastyPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class TastyPrinter(bytes: Array[Byte])(implicit ctx: Context) {
7272
printName(); printTree(); printTrees()
7373
case RETURN =>
7474
printNat(); printTrees()
75-
case METHODtype | POLYtype =>
75+
case METHODtype | LAMBDAtype | POLYtype =>
7676
printTree()
7777
until(end) { printName(); printTree() }
7878
case PARAMtype =>

0 commit comments

Comments
 (0)