ClojureDart icon indicating copy to clipboard operation
ClojureDart copied to clipboard

Named parameter defaults not handled correctly if symbols

Open raystubbs opened this issue 1 year ago • 0 comments

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.

raystubbs avatar Apr 24 '25 18:04 raystubbs