Skip to content

Commit a63eef1

Browse files
Merge pull request #4882 from dotty-staging/fix-tasty-relect-TermParamRef
Fix tasty reflect ParamRef extractor on TermParamRef
2 parents e42be8c + 0c16898 commit a63eef1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/TastyImpl.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ class TastyImpl(val rootContext: Contexts.Context) extends scala.tasty.Tasty { s
903903
Some((
904904
binder.asInstanceOf[LambdaType[TypeOrBounds]], // Cast to tpd
905905
idx))
906+
case Types.TermParamRef(binder, idx) => Some((binder, idx))
906907
case _ => None
907908
}
908909
}

compiler/test/dotc/pos-decompilation.blacklist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ i1181.scala
77
large.scala
88
large2.scala
99

10-
# scala.MatchError: TermParamRef(x)
11-
depfuntype.scala
12-
1310
# NPE
1411
i2888.scala
1512
tcpoly_overloaded.scala

0 commit comments

Comments
 (0)