…itten outside of a function
The current implementation crashes when someone writes a panic outside of
a function, which makes sense since that is broken code. This fix allows
one to type-check broken code.
Reviewed-by: Alan Donovan <email@example.com>
(cherry picked from commit c99687f)
Reviewed-by: Robert Griesemer <firstname.lastname@example.org>