You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//>usingoptions-experimental-language:experimental.namedTuplesvaldirs=IArray(
(dx =0, dy =1), // up
(dx =1, dy =0), // right
(dx =0, dy =-1), // down
(dx =-1, dy =0), // left
)
valIArray(Up@ _, _, _, _) = dirs
defTest= println(Up.dx)
Output
-- [E008] NotFoundError:-----------------------------------------------------10|defTest= println(Up.dx)
|^^^^^|value dx is not a member of Array.UnapplySeqWrapper[?<: (dx : Int, dy : Int)]#T1 error found
Expectation
selection should work, like it does if the pattern were Array.unapplySeq or Seq.unapplySeq
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.2-RC3
Minimized code
Output
Expectation
selection should work, like it does if the pattern were
Array.unapplySeq
orSeq.unapplySeq
The text was updated successfully, but these errors were encountered: