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.
Screened by: Alex Miller