#name: dont pass incomplete values to builtins
#evalFull
-- in.cue --
import "encoding/json"

input: string              @test(kind=string)
foo:   json.Marshal(input) @test(err, code=incomplete)
-- out/errors.txt --
[incomplete] foo: error in call to encoding/json.Marshal: non-concrete argument 0:
    ./in.cue:4:8
-- out/eval/stats --
Leaks:  0
Freed:  3
Reused: 0
Allocs: 3
Retain: 0

Unifications: 3
Conjuncts:    3
Disjuncts:    0
