---
- name: Invalid scalar at the end of sequence
  from: '@perlpunk'
  tags: error mapping sequence
  fail: true
  yaml: |
    key:
     - bar
     - baz
     invalid
  tree: |
    +STR
     +DOC
      +MAP
       =VAL :key
       +SEQ
        =VAL :bar
        =VAL :baz