Re: [PATCH 2/2] WIP union hir-lowering and type support

2021-08-01 Thread Mark Wielaard
On Sun, Aug 01, 2021 at 01:29:16PM +0200, Mark Wielaard wrote: > I added two simple testcases to show the basic support for unions > works now. But there are a couple of things that don't work correctly > for unions yet. In particular when enabling warnings for the new > union.rs testcase you'll ge

Re: [PATCH 2/2] WIP union hir-lowering and type support

2021-08-01 Thread Mark Wielaard
Hi Philip, On Fri, Jul 23, 2021 at 12:19:18PM +0100, Philip Herron wrote: > On 23/07/2021 00:19, Mark Wielaard wrote: > > Treat a union as a Struct variant like a tuple struct. Add an > > iterator and get_identifier functions to the AST Union class. Same > > for the HIR Union class, plus a get_g