bolt
bolt copied to clipboard
Fail to parse "array" of generic type
Combining generic types with the psuedo-array notation fails to parse correctly. Consider this code:
type Master {
history: Decorator<Item>[]
}
This should be the same as this block, according to the docs:
type Master {
history: Map<String, Decorator<Item>>
}
The latter parses and does what it should, but the former fails with this error:
bolt:2:5: Invalid property or method: '[]
'.