go/types: missing "missing return" error #23218
Labels
early-in-cycle
A change that should be done early in the 3 month dev cycle.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
For the following function
we correctly get a "missing return" error. But if the body is nested in a block
go/types silently accepts the code.
The problem is the that
Checker.isTerminating
(ingo/types/return.go
) uses the wrong scope to decide ifpanic
refers to the predeclared function or not.Not urgent as this is a rather esoteric case.
The text was updated successfully, but these errors were encountered: