Typed syntax output showing type unstable result as type stable? #599
Labels
bug
Something isn't working
TypedSyntax
An issue or pull request relating to the TypedSyntax.jl subpackage
Consider this example:
The first function
qux
is type unstable version ofidentity
.If I then
@descend foo(1)
and then descend intobar
, I see this:Unfortunately I can't show color here, so I also made a screenshot:
Note the contradictory output in
bar
: first it says that it has return typeAny
(correct). But then it saysqux(a)
has return typeInt64
which is false. At the end it again correctly says%2 = qux(::Int64)::Any
.To me this look like a problem with printing the typed syntax tree. Maybe the
::Int64
should really be attached to thea
(which comes from the outer functionfoo
)?Note that the issue goes away if I change
qux(a)
to e.g.qux(x)
in the code.The text was updated successfully, but these errors were encountered: