[generics] Constraint type inference not working

조회수 147회
읽지 않은 첫 메시지로 건너뛰기

jake...@gmail.com

읽지 않음,
2020. 8. 16. 오전 10:41:4820. 8. 16.
받는사람 golang-nuts
When I try the example from the "Constraint type inference" section of the Draft Design: https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#constraint-type-inference it does not seem to actually work:

https://go2goplay.golang.org/p/pfq3QV6gdgf

What am I missing?

Ian Lance Taylor

읽지 않음,
2020. 8. 18. 오전 12:59:2120. 8. 18.
받는사람 jake...@gmail.com, golang-nuts
I'm not sure. Can you open a bug report? Thanks.

Ian

jake...@gmail.com

읽지 않음,
2020. 8. 18. 오전 9:30:5520. 8. 18.
받는사람 golang-nuts
전체답장
작성자에게 답글
전달
새 메시지 0개