You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% cat a.go
package main
func main() {
x, ok := missing()
if !ok {
x = ""
}
print(x)
}
% go build a.go
./a.go:4: undefined: missing
% ssadump a.go
a.go:4:11: undeclared name: missing
a.go:4:11: undeclared name: missing
a.go:4:11: assignment count mismatch (2 vs 1)
a.go:5:6: invalid operation: operator ! not defined for ok (variable with invalid type)
There is a cascade of errors arising from a single mistake: that 'missing' is undefined
or mis-spelled. Given that missing, x, and ok have type 'invalid', as witnessed by the
final error, errors #2-#4 should be suppressed.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: