Closed gaurav-arya closed 2 years ago
Just saw https://github.com/andyferris/Dictionaries.jl/issues/28; this might be related / a duplicate
Yes, currently we are using return_type
, and we might one day resolve #28.
In practice people shouldn't be using globals that way in performance-critical code, and for playing at the REPL it shouldn't have a big effect.
Maybe I'll just close this as a duplicate of #28?
In the following code, the mapped dictionary has element type
Any
.This seems to be because
Core.Compiler.return_type
returnsAny
, due to the globalx
:However, I would expect the element type to still be
Int64
based on the fact that elements of the outputted dictionary have typeInt64
, which would match the behaviour ofBase.map
: