Skip to content

Commit 6e29748

Browse files
committed
Don't decode when unpickling tasty
was a patch left over from a previosu attempt to bugfix. Actually goes wrong when reading string literals that are represented as UTF8 names.
1 parent 9246d16 commit 6e29748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TastyUnpickler(reader: TastyReader) {
4848
val result = tag match {
4949
case UTF8 =>
5050
goto(end)
51-
termName(bytes, start.index, length).decode
51+
termName(bytes, start.index, length)
5252
case QUALIFIED | FLATTENED | EXPANDED | EXPANDPREFIX =>
5353
qualifiedNameKindOfTag(tag)(readName(), readName().asSimpleName)
5454
case UNIQUE =>

0 commit comments

Comments
 (0)