This PR adds support for literal unions, which convert unions like "abc" | "xyz" into a single byte.
This also applies to non-union literals, which will also be converted into a single byte. Whilst technically we could optimize single literals into zero bytes, that case is not common enough to warrant the overhead.
This PR adds support for literal unions, which convert unions like
"abc" | "xyz"
into a single byte.This also applies to non-union literals, which will also be converted into a single byte. Whilst technically we could optimize single literals into zero bytes, that case is not common enough to warrant the overhead.