-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
Go 1.19 (and tip):
package p
var x struct{ f *NotAType }
var _ = x.f == nil
var y *NotAType
var _ = y == nil
./prog.go:3:18: undefined: NotAType
./prog.go:4:16: invalid operation: x.f == nil (operator == not defined on untyped nil)
./prog.go:6:8: undefined: NotAType
The second error, on line 4, should not be printed.
Note that there is no second error involving y.
Something about the struct field is confusing the matter.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.