Can't type hint literal collection containing runtime values

Description

Currently type hints on literals containing runtime values are lost:

A workaround that currently works is to introduce a local and type hint the binding

The attached patch fixes this issue by tracking type hints for literal values, making the reflection go away even in the original case

Approach: preserve user hints in literal collections
Patch: 0001-CLJ-1929-preserve-type-hints-in-literals.patch

Environment

OS X 10.11.4

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

David Bürgin

Approval

Triaged

Patch

Code

Priority

Major

Affects versions