Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated fields are allowed when building object via list comprehension #99

Closed
edsilfer opened this issue Nov 6, 2020 · 0 comments · Fixed by #100
Closed

Duplicated fields are allowed when building object via list comprehension #99

edsilfer opened this issue Nov 6, 2020 · 0 comments · Fixed by #100

Comments

@edsilfer
Copy link
Contributor

edsilfer commented Nov 6, 2020

What is the issue?

When assembling an object via list comprehension, duplicated files are allowed when they should not - see the same example running on sjsonnet.org

How to reproduce?

  1. echo '{ ["bar"]: x for x in [37, -987]}' > foo.jsonnet
  2. ./mill "sjsonnet[2.13.3]".jvm.run foo.jsonnet
  3. Expected:
RUNTIME ERROR: duplicate field name: "bar"
	example1.jsonnet:1:1-35	
  1. Actual
{
   "bar": -987
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant