Skip to content

Commit

Permalink
Fix nightly build by updating a named tuple test with language import (
Browse files Browse the repository at this point in the history
…#22059)

Because of the change from #22045, the test
`tests/pos/named-tuple-downcast.scala` from #22028 need to be updated
with `import scala.language.experimental.namedTuples`.

Fix #22058
  • Loading branch information
WojciechMazur authored Nov 30, 2024
2 parents 70df81d + 31dd855 commit 34f3993
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pos/named-tuple-downcast.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scala.language.experimental.namedTuples

type Person = (name: String, age: Int)

val Bob: Person = (name = "Bob", age = 33)
Expand Down

0 comments on commit 34f3993

Please sign in to comment.