ClojureDart
ClojureDart copied to clipboard
Named parameter defaults not handled correctly if symbols
Describe the bug
This doesn't work:
(deftype MyRouteInfoProvider
[]
:extends m/RouteInformationProvider
(routerReportsNewRouteInformation
[_ routeInfo .type m/RouteInformationReportingType.none]
...)
...)
The m/RouteInformationReportingType.none is treated as another parameter name, instead of as
the default value for .type.
To Reproduce Try and use a symbol as the default value for a named parameter.
Expected behavior Not a build error.
Additional context
Replacing m/RouteInformationReportingType.none with (.-none m/RouteInformationReportingType) does work.