mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 18:30:54 +01:00
Today this code results in a syntax error: `type foo = { ["bar" | "baz"]: number }`. This is odd and I believe it is a bug. I have fixed this so that it is now parsed as an indexer field with a union type. This change should not affect the way any code is parsed today, and allow types in indexers to begin with string literals. --------- Co-authored-by: ariel <aweiss@hey.com> |
||
---|---|---|
.. | ||
Luau |