Skip to content

Weird error message when importing with reserved name as alias #7255

Open
@anderseknert

Description

@anderseknert

Yeah, not exactly high priority, but figured I'd note it down anyway. Whatever we should send back in this error, it shouldn't be the current message.

package play

import data.foo as input

x := 1
1 error occurred: policy.rego:5: rego_parse_error: unexpected identifier token: expected var
	x := 1
	^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions