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
The following program sample.gop triggers an unexpected result
funcmain() {
i :=I(A{})
b :=make(chan I, 1)
b <- B{}
var ok bool
i, ok= <-b
}
type I interface{ M() int }
type T int
func (T) M() int { return0 }
type A struct{ T }
type B struct{ T }
Expected result
compile passed
Got
nil underlying
Gop Version
gop v1.1.0-alpha1-256-gf3285c6 darwin/amd64
Additional Notes
No response
The text was updated successfully, but these errors were encountered:
The following program
sample.gop
triggers an unexpected resultExpected result
compile passed
Got
nil underlying
Gop Version
gop v1.1.0-alpha1-256-gf3285c6 darwin/amd64
Additional Notes
No response
The text was updated successfully, but these errors were encountered: