<< Back to previous view

[CTYP-15] Eliminate the need to specify all ancestors in alter-class. Created: 08/Mar/13  Updated: 20/Jul/15

Status: Open
Project: core.typed
Component/s: Clojure Checker
Affects Version/s: None
Fix Version/s: Backlog

Type: Task Priority: Minor
Reporter: Ambrose Bonnaire-Sergeant Assignee: Ambrose Bonnaire-Sergeant
Resolution: Unresolved Votes: 0
Labels: newbie


We should be able to elide at least a couple of these annotations.

PersistentHashSet [[[a :variance :covariant]]
                   {Seqable (Seqable a)
                    java.util.Set (java.util.Set a)
                    Iterable (Iterable a)
                    Collection (Collection a)
                    APersistentSet (APersistentSet a)
                    IPersistentSet (IPersistentSet a)
                    IPersistentCollection (IPersistentCollection a)}
                   #{[Any -> (U a nil)]}]

I think just override APersistentSet should infer the rest.

PersistentHashSet [[[a :variance :covariant]]
                   {APersistentSet (APersistentSet a)}
                   #{[Any -> (U a nil)]}]

:unchecked-ancestors is a different problem.

Generated at Fri Nov 27 11:16:33 CST 2015 using JIRA 4.4#649-r158309.