- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RecvChan (0.09 sec)
-
src/internal/types/testdata/fixedbugs/issue43671.go
<-ch // ERROR "cannot receive from send-only channel" } func _[T C5[X], X any](ch T, x X) { x = <-ch } // test case from issue, slightly modified type RecvChan[T any] interface { ~chan T | ~<-chan T } func _[T any, C RecvChan[T]](ch C) T { return <-ch } func f[T any, C interface{ chan T }](ch C) T { return <-ch } func _(ch chan int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 1.1K bytes - Viewed (0) -
src/internal/types/testdata/spec/assignability.go
_RecvChan = <-chan int SendChan _SendChan RecvChan _RecvChan ) func _[ _CC ~_Chan, _SC ~_SendChan, _RC ~_RecvChan, CC Chan, SC SendChan, RC RecvChan, ]() { var ( _ _SendChan = c _ _RecvChan = c _ _Chan = c _ _SendChan = C _ _RecvChan = C _ _Chan = C _ SendChan = c _ RecvChan = c _ Chan = c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 5.1K bytes - Viewed (0)