ResourceContexts.jl icon indicating copy to clipboard operation
ResourceContexts.jl copied to clipboard

`@!` doesn't work on functions with return type in signature

Open li1 opened this issue 4 years ago • 1 comments

For example:

> @! function g() end
g (generic function with 1 method)

> g(
g(var"#context"::ResourceContexts.AbstractContext) in Main at REPL[10]:1

but

> @! function h()::Int end
h (generic function with 1 method)

> h(
h() in Main at REPL[11]:1

li1 avatar Sep 16 '21 15:09 li1

True. There's probably several issues of this form — where clauses, etc.

c42f avatar Sep 16 '21 23:09 c42f