We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70df81d commit 31dd855Copy full SHA for 31dd855
tests/pos/named-tuple-downcast.scala
@@ -1,3 +1,5 @@
1
+import scala.language.experimental.namedTuples
2
+
3
type Person = (name: String, age: Int)
4
5
val Bob: Person = (name = "Bob", age = 33)
0 commit comments