this branch is never reachable or just need a test case?

158 views
Skip to first unread message

xie cui

unread,
Apr 30, 2023, 1:09:12 PM4/30/23
to golang-dev
https://github.com/cuiweixie/go/blob/useless/src/cmd/compile/internal/types2/unify.go#L318-L319
I add these two line, then run ./all.bash in src. all test passed.
I think this branch it's unneccessary.  but I am not very sure. maybe we just need a test to cover it.

Robert Griesemer

unread,
Apr 30, 2023, 2:25:35 PM4/30/23
to xie cui, golang-dev
Please leave this alone. We may need this branch with better type inference. Thanks.
- gri

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/7c836474-70a2-48c5-80f0-d6d7d186f56cn%40googlegroups.com.

xie cui

unread,
Apr 30, 2023, 10:54:11 PM4/30/23
to golang-dev
can you provide some code  that reachable this branch, I can not come up with a code.

Robert Griesemer

unread,
May 1, 2023, 5:45:07 PM5/1/23
to xie cui, golang-dev
Reply all
Reply to author
Forward
0 new messages