ClojureScript

Too many arguments to def

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    clojure 1.5.1
    lein-cljsbuild 0.3.2

Description

In Clojure:
> (def f [x] x)
throws RuntimeException: Too many arguments to def

In ClojureScript:
> (def f [x] x)
throws ClassCastException: PersistentVector cannot be cast to CharSequence

Clojurescript should throw a helpful error, like Clojure.

  1. CLJS-602-v2.diff
    07/Oct/13 11:54 PM
    0.9 kB
    Jonas Enlund
  2. CLJS-602
    07/Oct/13 9:39 AM
    0.9 kB
    Jonas Enlund

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: