1 file changed, 6 deletions(-)
src/lens.c | 6 ------
# HG changeset patch
# User David Lutterkort <[EMAIL PROTECTED]>
# Date 1216919306 25200
# Node ID 6ea48721992bd6b565281f07860e4f25745bf525
# Parent a5ed9b8875570a8173adb14a5da73c077fb61ec5
There is nothing wrong with having a key or store in each branch of a union
diff -r a5ed9b887557 -r 6ea48721992b src/lens.c
--- a/src/lens.c Thu Jul 24 10:07:34 2008 -0700
+++ b/src/lens.c Thu Jul 24 10:08:26 2008 -0700
@@ -86,12 +86,6 @@
struct value *exn = typecheck_union(info, l1, l2);
if (exn != NULL)
return exn;
- }
- if (l1->value && l2->value) {
- return make_exn_value(info, "Multiple stores in union");
- }
- if (l1->key && l2->key) {
- return make_exn_value(info, "Multiple keys/labels in union");
}
lens = make_lens_binop(L_UNION, info, l1, l2);
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel