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
Please answer these questions before submitting your issue. Thanks!
What did you do?
Hello up there, please consider the following relatively-minimal snippet:
package xxx
typeNodeLinkstruct {}
// A role our end of NodeLink is intended to playtypeLinkRoleintconst (
LinkServerLinkRole=iota// link created as serverLinkClient// link created as client// for testing:linkNoRecvSendLinkRole=1<<16// do not spawn serveRecv & serveSendlinkFlagsMaskLinkRole= (1<<32-1) <<16
)
funcNewNodeLink(roleLinkRole) *NodeLink {
varnextConnIduint32switchrole&^linkFlagsMask {
caseLinkServer:
nextConnId=0// all initiated by us connId will be evencaseLinkClient:
nextConnId=1// ----//---- odddefault:
panic("invalid conn role")
}
_=nextConnIdreturnnil
}
Please answer these questions before submitting your issue. Thanks!
What did you do?
Hello up there, please consider the following relatively-minimal snippet:
(https://play.golang.org/p/QJn8WazIMx)
What did you expect to see?
This code compiles ok.
What did you see instead?
Does this issue reproduce with the latest release (go1.8)?
No, it is a regression:
System details
Thanks beforehand,
Kirill
/cc @rasky
The text was updated successfully, but these errors were encountered: