Skip to content

Commit

Permalink
Make type checker copy method copy all values (#6949)
Browse files Browse the repository at this point in the history
Just a small improvement from looking into #6946

This doesn't necessarily solve all issues reported there, but I figured
I might as well commit this anyway.

Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert committed Aug 21, 2024
1 parent a94d87f commit e6aa584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ast/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 60,10 @@ func (tc *typeChecker) copy() *typeChecker {
WithVarRewriter(tc.varRewriter).
WithSchemaSet(tc.ss).
WithAllowNet(tc.allowNet).
WithInputType(tc.input)
WithInputType(tc.input).
WithAllowUndefinedFunctionCalls(tc.allowUndefinedFuncs).
WithBuiltins(tc.builtins).
WithRequiredCapabilities(tc.required)
}

func (tc *typeChecker) WithRequiredCapabilities(c *Capabilities) *typeChecker {
Expand Down

0 comments on commit e6aa584

Please sign in to comment.