CI validation error dependency not defined

Summary

Attempting to add dependencies to a CI pipeline where multiple jobs have the same stage name. This code should work (assuming I have understood the documentation correctly):

stages:
  - dev
  - prod

devtest:
  stage: dev
  script:
    - {{ some script }}
  artifacts:
    paths:
      - file.out

devbuild:
  stage: dev
  dependencies:
    - devtest
  script:
    - {{ some script }}
  artifacts:
    paths:
      - file.out

prodtest:
  stage: prod
  script:
    - {{ some script }}
  artifacts:
    paths:
      - file.out

prodbuild:
  stage: prod
  dependencies:
    - prodtest
  script:
    - {{ some script }}
  artifacts:
    paths:
      - file.out

Steps to reproduce

Using the above .gitlab-ci.yml produces an undefined dependency error

What is the current bug behavior?

A CI lint error is returned and will not run

What is the expected correct behavior?

I would expect the correct job names to be used as dependent tasks and the CI lint to pass.

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

We are running GitLab CE 12.0.3 with a single runner

Results of GitLab application Check

Possible fixes