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
Is this phenomena documented somewhere? How to pass nil to an interface in this case.
The text was updated successfully, but these errors were encountered:
mengzhuo
changed the title
affected/package: Syntax (interface vs nil struct) This example breaks the concept of passing nil values to interface
go/types, types2: Syntax (interface vs nil struct) This example breaks the concept of passing nil values to interface
Aug 16, 2022
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
io is nil
Is this phenomena documented somewhere? How to pass nil to an interface in this case.
The text was updated successfully, but these errors were encountered: