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
Copy file name to clipboardExpand all lines: jscomp/build_tests/super_errors/expected/UntaggedUnknown.res.expected
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@
6
6
[1;31m2[0m [2m│[0m type t = [1;31mTuple((float, string))[0m | Float(float)
7
7
3 [2m│[0m
8
8
9
-
This untagged variant definition is invalid: An unknown case must be the only case with payloads.
9
+
This untagged variant definition is invalid: Case Tuple has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads.
fprintf ppf "This untagged variant definition is invalid: %s"
29
29
(match untaggedVariant with
30
-
|OnlyOneUnknown -> "An unknown case must be the only case with payloads."
30
+
|OnlyOneUnknownname-> "Case "^ name ^" has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads."
31
31
|AtMostOneObject -> "At most one case can be an object type."
32
32
|AtMostOneArray -> "At most one case can be an array type."
33
33
|AtMostOneFunction -> "At most one case can be a function type."
0 commit comments