List of steps to reproduce (step by step, including full links if applicable):
- Given a type "Boolean wrapper" which consists of single key of type Boolean
- Given a function "Boolean wrapper constructor" which takes a Boolean and returns a Boolean wrapper wrapping that value
- Given a composition implementation of the latter
- Run the function with a value
What happens?:
- It returns
{ "Z1K1": "Z22", "Z22K1": "Z23", "Z22K2": { "Z1K1": "Z5", "Z5K2": "Internal Server Error" } }
What should have happened instead?:
Z22K1 should be a Boolean wrapper wrapping the value.
Type:
{ "Z1K1": "Z2", "Z2K1": { "Z1K1": "Z6", "Z6K1": "Z10153" }, "Z2K2": { "Z1K1": "Z4", "Z4K1": "Z10153", "Z4K2": [ { "Z1K1": "Z3", "Z3K1": "Z40", "Z3K2": { "Z1K1": "Z6", "Z6K1": "Z10153K1" }, "Z3K3": { "Z1K1": "Z12", "Z12K1": [ { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "inner" } ] } } ], "Z4K3": "Z101" }, "Z2K3": { "Z1K1": "Z12", "Z12K1": [ { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "Boolean wrapper" } ] }, "Z2K4": { "Z1K1": "Z32", "Z32K1": [ { "Z1K1": "Z31", "Z31K1": "Z1002", "Z31K2": [] } ] } }
Boolean wrapper function:
{ "Z1K1": "Z2", "Z2K1": { "Z1K1": "Z6", "Z6K1": "Z10155" }, "Z2K2": { "Z1K1": "Z8", "Z8K1": [ { "Z1K1": "Z17", "Z17K1": "Z40", "Z17K2": { "Z1K1": "Z6", "Z6K1": "Z10155K1" }, "Z17K3": { "Z1K1": "Z12", "Z12K1": [ { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "input" } ] } } ], "Z8K2": "Z10153", "Z8K3": [], "Z8K4": [], "Z8K5": "Z10155" }, "Z2K3": { "Z1K1": "Z12", "Z12K1": [ { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "Boolean wrapper constructor" } ] }, "Z2K4": { "Z1K1": "Z32", "Z32K1": [ { "Z1K1": "Z31", "Z31K1": "Z1002", "Z31K2": [] } ] } }
Boolean wrapper implementation:
{ "Z1K1": "Z2", "Z2K1": { "Z1K1": "Z6", "Z6K1": "Z10158" }, "Z2K2": { "Z1K1": "Z14", "Z14K1": "Z10155", "Z14K2": { "Z1K1": "Z7", "Z7K1": "Z801", "Z801K1": { "Z1K1": "Z10153", "Z10153K1": { "Z1K1": "Z18", "Z18K1": { "Z1K1": "Z6", "Z6K1": "Z10155K1" } } } } }, "Z2K3": { "Z1K1": "Z12", "Z12K1": [ { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "Boolean wrapper constructor implementation" } ] }, "Z2K4": { "Z1K1": "Z32", "Z32K1": [ { "Z1K1": "Z31", "Z31K1": "Z1002", "Z31K2": [] } ] } }
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Current local machine