You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I lack the words to explain it better so hopefully the linked demo is self-explanatory.
Is this a bug, a feature or a missing feature?
The text was updated successfully, but these errors were encountered:
jhass
changed the title
Adding a K => V to a Hash subclass is not possible with certain types
Recursive alias does not match non generic subclass of generic type (Was: Adding a K => V to a Hash subclass is not possible with certain types)
Sep 14, 2015
jhass
changed the title
Recursive alias does not match non generic subclass of generic type (Was: Adding a K => V to a Hash subclass is not possible with certain types)
Recursive alias does not match non generic subclass of generic type
Sep 14, 2015
Something is odd. I just realized I'm able to assign a key to a Array(BSON::Document) fine when I generate the document from the bson source.
Essentially, this this value of the document will make an Array(BSON::Document | String | Int32 | Bool | BSON::ObjectId). Later on, it'll be inserted in the document.
I'm not sure that would suddenly work...
I created a new playground code example http://play.crystal-lang.org/#/r/fix which shows how it works if the array's type is specified beforehand.
(Was: Adding a K => V to a Hash subclass is not possible with certain types)
In short: With a subclassed (and permissive of many types) Hash, it's not always possible to add certain types of values to it.
Demonstation: http://play.crystal-lang.org/#/r/fbe
I lack the words to explain it better so hopefully the linked demo is self-explanatory.
Is this a bug, a feature or a missing feature?
The text was updated successfully, but these errors were encountered: