Completed
Details
Assignee
UnassignedUnassignedReporter
importimportApproval
OkPatch
Code and TestPriority
MajorFix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
import
importApproval
Ok
Patch
Code and Test
Priority

Fix versions
Created March 11, 2014 at 9:57 PM
Updated August 29, 2014 at 4:50 PM
Resolved August 29, 2014 at 4:50 PM
Example showing how a local fn can be hinted but an anonymous function cannot:
Cause: Functions have metadata, but Compiler does not look in them for type hints. Var expressions and local bindings use :tag metadata to override return of getJavaClass(). Compiler parses #() into a FnExpr, which always return AFunction as its class.
Proposed: Change FnExpr.getJavaClass() to return tag as type if it is available.
Patch: clj-1378-v2.diff
Screened by: Alex Miller