bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Fail to parse "array" of generic type

Open barneyb opened this issue 8 years ago • 0 comments

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: '[]
'.

barneyb avatar Sep 11 '17 17:09 barneyb