Skip to content

Commit

Permalink
Fix merge-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
5nord committed Apr 17, 2023
1 parent 478a235 commit ad2c5ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interpreter/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ func evalListSpec(t *ast.ListSpec, env runtime.Scope) runtime.Object {
if listElement == nil || runtime.IsError(listElement) {
return listElement
}
switch t.Kind.Lit {
switch t.Kind.String() {
case "set":
return runtime.NewSetOf(listElement)
case "record":
return runtime.NewRecordOf(listElement)
default:
return runtime.Errorf("unknown list spec type %s", t.Kind.Lit)
return runtime.Errorf("unknown list spec type %s", t.Kind.String())
}
}

Expand Down

0 comments on commit ad2c5ce

Please sign in to comment.