Closed mischnic closed 2 years ago
The nested generics in this example
class X { foo(): void { let errors = new Map<NodeId, Array<Thing>>(); let dirtyDeps = new Set<NodeId>(); } }
seem to confuse the syntax highlighting (i.e. the second let isn't recognized)
let
Version: 4.0.6 Sublime Text 4, Build 4107 config:
{ "configurations": { "Default": {} }, "defaults": { "flow_types": true, "jsx": true, "string_object_keys": true } }
It turns out the Flow extension didn't actually support function type arguments, probably because that's really difficult to implement without branching. I've added that in the current 4.1 beta.
Fixed in v4.1.0.
The nested generics in this example
seem to confuse the syntax highlighting (i.e. the second
let
isn't recognized)Version: 4.0.6 Sublime Text 4, Build 4107 config: