<< Back to previous view

[CLJS-571] Anonymous variadic fn arg not read properly Created: 12/Aug/13  Updated: 22/Aug/13  Resolved: 18/Aug/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Chas Emerick Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File 0001-CLJS-571-update-tools.reader-to-last-version.patch    
Patch: Code


Starting with 0.0-1853 (specifically, 9f010ff), anonymous function literals containing a variadic argument fail to compile, e.g.

#(last %&)

This is due to TRDR-7 AFAICT. Note that the above will work in all known ClojureScript REPLs because they still use clojure.core/read & co.; the failure only occurs via e.g. lein-cljsbuild, cljs.closure/-compile, etc.

Comment by Nicola Mometto [ 14/Aug/13 9:59 AM ]

The atteched patch updates tools.reader with the just released 0.7.6 that fixes the problem.

As I just performed the release, it may take a few hours for the new version to hit the maven repository

Comment by David Nolen [ 18/Aug/13 5:20 PM ]

fixed, http://github.com/clojure/clojurescript/commit/8659472b343af203a96baf6651fb24d7fdc60897

Comment by Chas Emerick [ 22/Aug/13 8:53 AM ]

Thanks, all!

Generated at Sat Jan 20 15:26:03 CST 2018 using JIRA 4.4#649-r158309.