@griesemer requested issue #57486 to be considered for backport to the next 1.18 minor release.
This is now fixed (but not yet submitted). As @ianlancetaylor correctly noted, this should not have worked with Go 1.18 or Go 1.19.
@gopherbot please consider this for backport to 1.18 and 1.19. This is a compiler bug.
@griesemer requested issue #57486 to be considered for backport to the next 1.18 minor release.