.hashCode throws ClassCastException when called on some functions

Description

Environment

None

Attachments

1

Activity

Show:

Jozef Wagner December 1, 2016 at 7:29 PM

Patch attached

Ghadi Shayban June 14, 2016 at 9:36 PM

agreed with nicola's suggestion - change type hints. This is a dup of CLJ-140 where :tag causes confusion when a var is being invoked vs used in expr context

Nicola Mometto June 10, 2016 at 9:27 AM

This happens because `some?` and `str` have type hints on the Var to signal the type returned by their invocations, but the Compiler thinks those type hints apply to the Var object itself aswell.

An easy fix would be to move those type hints from the Var (old-style) to the argvec (new-style)

Details

Assignee

Reporter

Approval

Triaged

Patch

Code

Priority

Created June 9, 2016 at 10:19 PM
Updated December 1, 2016 at 9:40 PM