Skip to content

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

@edsilfer

Description

@edsilfer

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions