diff options
author | Ayke van Laethem <[email protected]> | 2023-03-16 23:48:50 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-03-18 17:53:47 +0100 |
commit | 5b42871baaf19d83b75d4ef298079888c983a54b (patch) | |
tree | 3067007e5130670211df44cb3b4115850f2bc110 /.github | |
parent | c5598630c94e51895e8c7361751512d7bde943aa (diff) | |
download | tinygo-5b42871baaf19d83b75d4ef298079888c983a54b.tar.gz tinygo-5b42871baaf19d83b75d4ef298079888c983a54b.zip |
compiler: support all kinds of recursive types
Previously we only supported recursive types in structs. But there can
be other kinds of recursive types, like slices:
type RecursiveSlice []RecursiveSlice
This doesn't involve structs, so it led to infinite recursion in the
compiler. This fix avoids recursion at the proper level: at the place
where the named type is defined.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions