compile dot number too
This commit is contained in:
parent
972fd25fda
commit
219142140c
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user