[CTYP-14] Annotation for re-find return type is too specific Created: 07/Mar/13 Updated: 25/Sep/13 Resolved: 07/Mar/13
|Reporter:||Andrew Brehaut||Assignee:||Ambrose Bonnaire-Sergeant|
clojure.core/re-find returns different things depending on the regular expression used and the string it matches against. Currently core.typed annotates this as returning (Option String). However, in the presence of capture groups, it may return a vector of strings, so the current annotation is too specific.
Additionally, clojure.core/re-groups is not annotated, and uses the same return type as clojure.core/re-find.
|Comment by Andrew Brehaut [ 07/Mar/13 9:10 PM ]|
This patch (
|Comment by Ambrose Bonnaire-Sergeant [ 07/Mar/13 9:21 PM ]|