Skip to content

Commit

Permalink
fix slice slice
Browse files Browse the repository at this point in the history
  • Loading branch information
douyixuan committed Sep 4, 2024
1 parent c5cff1c commit 122a98c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ func (c *Compiler) compileValue(node parser.Node) value.Value {
}

if ty, ok := src.Type.(*types.Slice); ok {
src.Value = internal.LoadIfVariable(c.contextBlock, src)
src.Type = ty.Type
return c.compileSliceArray(src, v, true)
}
Expand Down

0 comments on commit 122a98c

Please sign in to comment.