Skip to content

evaluator: reference "strings" in label expression refers to field against which it would be matched #4291

@rogpeppe

Description

@rogpeppe

What version of CUE are you using (cue version)?

v0.16.0

Does this issue reproduce with the latest stable release?

Yes (v0.16.0)

What did you do?

exec cue vet x.cue

-- x.cue --
import "strings"

[strings.MaxRunes(3)]: _

What did you expect to see?

A passing test. Unlike the similar error showing in #2013, this does not involve any kind of cycle.

What did you see instead?

> exec cue vet x.cue
[stderr]
reference "strings" in label expression refers to field against which it would be matched:
    ./x.cue:3:2
[exit status 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