ClojureScript

Incorrect warnings on type hinted maths

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.0-3255
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

Variables type hinted as int or double are not recognized as numbers, e.g.

(def ^int i 1)
(+ i i)
WARNING: cljs.core/+, all arguments must be numbers, got [int int] instead. at line 1 <cljs repl>
2

Activity

Hide
David Nolen added a comment -

The real issue is that there is no support for numeric type hints.

Show
David Nolen added a comment - The real issue is that there is no support for numeric type hints.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: