We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7817062 + a746a7f commit 19dcba5Copy full SHA for 19dcba5
docs/_docs/reference/new-types/match-types.md
@@ -83,6 +83,12 @@ following conditions are met:
83
and these types are `=:=` to their corresponding type patterns in the match
84
type
85
86
+So you know, while the case body will be expected to have the type on the right-hand
87
+side of the corresponding match type case, that doesn't imply the match type argument
88
+is constrained. Using the example, the last case body must conform to X, but that
89
+doesn't constrain X to be AnyVal, and therefore a LeafElem[X] inside the body wouldn't
90
+reduce; it would remain stuck, and as such just an abstract type.
91
+
92
## Representation of Match Types
93
94
The internal representation of a match type
0 commit comments