Inconsistent duplicate check in set/map literals with quoted/unquoted equal constants

Description

Set and map literals containing the same constant quoted and unquoted, will throw a duplicate key exception in some cases (the correct behaviour), while silently ignore the duplicate in some others.

This happens because the compiler assumes that literals that have distinct elements at read-time, will have distinct elements at runtime. This is not true for self-evaluating elements where (quote x) is equal to x

Environment

None

Attachments

1

Activity

Show:

Jozef Wagner December 1, 2016 at 9:38 PM

Attached patch with tests.

Details

Assignee

Reporter

Approval

Triaged

Patch

Code and Test

Priority

Created March 6, 2016 at 11:50 AM
Updated December 1, 2016 at 9:39 PM