mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00: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> |
||
---|---|---|
.. | ||
Allocator.cpp | ||
Ast.cpp | ||
Confusables.cpp | ||
Cst.cpp | ||
Lexer.cpp | ||
Location.cpp | ||
Parser.cpp | ||
StringUtils.cpp | ||
TimeTrace.cpp |