@@ -395,15 +395,15 @@ end
395
395
# Returns the return type. example: get_type(:(Base.strip("", ' ')), Main) returns (String, true)
396
396
function try_get_type (sym:: Expr , fn:: Module )
397
397
val, found = get_value (sym, fn)
398
- found && return Base . typesof (val). parameters[ 1 ] , found
398
+ found && return Core . Typeof (val), found
399
399
if sym. head === :call
400
400
# getfield call is special cased as the evaluation of getfield provides good type information,
401
401
# is inexpensive and it is also performed in the complete_symbol function.
402
402
a1 = sym. args[1 ]
403
403
if isa (a1,GlobalRef) && isconst (a1. mod,a1. name) && isdefined (a1. mod,a1. name) &&
404
404
eval (a1) === Core. getfield
405
405
val, found = get_value_getfield (sym, Main)
406
- return found ? Base . typesof (val). parameters[ 1 ] : Any, found
406
+ return found ? Core . Typeof (val) : Any, found
407
407
end
408
408
return get_type_call (sym)
409
409
elseif sym. head === :thunk
430
430
431
431
function get_type (sym, fn:: Module )
432
432
val, found = get_value (sym, fn)
433
- return found ? Base . typesof (val). parameters[ 1 ] : Any, found
433
+ return found ? Core . Typeof (val) : Any, found
434
434
end
435
435
436
436
# Method completion on function call expression that look like :(max(1))
0 commit comments