#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:assert", "assert")

#@ def test1_left():
key1: val1
#@ end

#@ def test1_right():
#@overlay/assert via=lambda a,b: assert.fail("fail")
key1:
#@ end

test1: #@ overlay.apply(test1_left(), test1_right())

+++

ERR: 
- overlay.apply: Map item (key 'key1') on line stdin:10: assert.fail: fail: fail
    in <toplevel>
      stdin:13 | test1: #@ overlay.apply(test1_left(), test1_right())