compile dot number too

This commit is contained in:
Chris Wanstrath 2025-10-26 22:32:07 -07:00
parent 972fd25fda
commit 219142140c

View File

@ -219,9 +219,9 @@ export const getDotGetParts = (node: SyntaxNode, input: string) => {
) )
} }
if (property.type.id !== terms.Identifier) { if (property.type.id !== terms.Identifier && property.type.id !== terms.Number) {
throw new CompilerError( throw new CompilerError(
`DotGet property must be an Identifier, got ${property.type.name}`, `DotGet property must be an Identifier or Number, got ${property.type.name}`,
property.from, property.from,
property.to property.to
) )