Skip to content

Commit 5a94015

Browse files
committed
TastyPrinter: Do not crash on implicit/erased dep methods
1 parent aad1ffb commit 5a94015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class TastyPrinter(bytes: Array[Byte])(implicit ctx: Context) {
6969
printName(); printTree(); printTrees()
7070
case RETURN | HOLE =>
7171
printNat(); printTrees()
72-
case METHODtype | POLYtype | TYPELAMBDAtype =>
72+
case METHODtype | IMPLICITMETHODtype | ERASEDMETHODtype | ERASEDIMPLICITMETHODtype | POLYtype | TYPELAMBDAtype =>
7373
printTree()
7474
until(end) { printName(); printTree() }
7575
case PARAMtype =>

0 commit comments

Comments
 (0)