Skip to content

Commit 4f93d2b

Browse files
committed
Fix unchecked warnings in test
1 parent cd99086 commit 4f93d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/test/dotty/tools/dotc/parsing/StringInterpolationPositionTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class StringInterpolationPositionTest extends ParserTest {
2323
def interpolationLiteralPosition: Unit = {
2424
val t = parseText(program)
2525
t match {
26-
case PackageDef(_, List(TypeDef(_, Template(_, _, _, statements: List[Tree])))) => {
27-
val interpolations = statements.collect{ case ValDef(_, _, InterpolatedString(_, int)) => int }
26+
case PackageDef(_, List(TypeDef(_, tpl: Template))) => {
27+
val interpolations = tpl.body.collect{ case ValDef(_, _, InterpolatedString(_, int)) => int }
2828
val lits = interpolations.flatten.flatMap {
2929
case l @ Literal(_) => List(l)
3030
case Thicket(trees) => trees.collect { case l @ Literal(_) => l }

0 commit comments

Comments
 (0)