Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for C1r (0.04 sec)

  1. src/internal/types/testdata/check/expr2.go

    	// various element types (named types)
    	type (
    		C1 chan int
    		C1r <-chan int
    		C1s chan<- int
    		C2 chan float32
    	)
    	var (
    		c1 C1
    		c1r C1r
    		c1s C1s
    		c1a chan int
    		c2 C2
    	)
    	_ = c1 == c1
    	_ = c1 == c1r /* ERROR "mismatched types" */
    	_ = c1 == c1s /* ERROR "mismatched types" */
    	_ = c1r == c1s /* ERROR "mismatched types" */
    	_ = c1 == c1a
    	_ = c1a == c1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top