Age | Commit message (Collapse) | Author |
|
Ensure the name of the returned error variable matches the name of the
error variable assigned in the `defer` statement.
|
|
Want to check that the `return` statement uses the same variable used in
the `defer` closure. Start inspecting the values to figure out how we
can narrow that down.
Add a test case for a "good" assignment of a returned error in `defer`.
|
|
|
|
While looking at the assignments in the `defer`, if we encounter an
`error`-type assignment, emit a diagnostic if the error named in the lhs
of the assignment is not present in the return signature's names.
Not sure if this makes sense to me yet. I probably only want to report a
problem for a non-declare assignment of an error value when the error
type in the return signature is _not_ named at all.
|
|
And add a test function that does have named returned values.
|
|
Still working out how to traverse the AST to be able to see the objects
I need.
|