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
.\main.go:12:28: cannot use func() (T, bool) {…} (value of type func() (T, bool)) as func() Option[T] value in struct literal
when trying to compile the go code.
Not sure what is the root cause of the issue, but compiling these code leads to stack overflow:
Possible causes:
i
, compiler freaks outBut, I tried to remove the logic from the lambda, and got following error
.\main.go:12:28: cannot use func() (T, bool) {…} (value of type func() (T, bool)) as func() Option[T] value in struct literal
when trying to compile the go code.
Here is the snippet from
main.go
:The text was updated successfully, but these errors were encountered: