Invalid swapping of elements in slice within a global slice #945
Labels
bug
Bug: something already implemented does not work as it should
InvalidBehavior
A valid or not valid code has an invalid behavior at runtime
needsInvestigation
Need to investigate
templates
Related to the template
Description
The swapping of the first and the second elements of a slice, which is assigned to a field of a struct of a (global) slice element, generates an invalid behavior.
How to reproduce
Add this test to
test/misc/templates_test.go
:The text was updated successfully, but these errors were encountered: