Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tB2 (0.01 sec)

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

    )
    
    type (
    	mybool bool
    	myint int
    	myfloat float64
    	mycomplex complex128
    )
    
    // typed constants
    const (
    	// boolean values
    	tb0 bool = false
    	tb1 bool = true
    	tb2 mybool = 2 < 1
    	tb3 mybool = ti1 == tf1 /* ERROR "mismatched types" */
    
    	// integer values
    	ti0 int8 = ui0
    	ti1 int32 = ui1
    	ti2 int64 = ui2
    	ti3 myint = ui3 /* ERROR "overflows" */
    	ti4 myint = ui4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top