Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for type$val (0.1 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    		return after[:n]
    	}
    	panic("missing package header: " + src)
    }
    
    func TestValuesInfo(t *testing.T) {
    	var tests = []struct {
    		src  string
    		expr string // constant expression
    		typ  string // constant type
    		val  string // constant value
    	}{
    		{`package a0; const _ = false`, `false`, `untyped bool`, `false`},
    		{`package a1; const _ = 0`, `0`, `untyped int`, `0`},
    		{`package a2; const _ = 'A'`, `'A'`, `untyped rune`, `65`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    		return after[:n]
    	}
    	panic("missing package header: " + src)
    }
    
    func TestValuesInfo(t *testing.T) {
    	var tests = []struct {
    		src  string
    		expr string // constant expression
    		typ  string // constant type
    		val  string // constant value
    	}{
    		{`package a0; const _ = false`, `false`, `untyped bool`, `false`},
    		{`package a1; const _ = 0`, `0`, `untyped int`, `0`},
    		{`package a2; const _ = 'A'`, `'A'`, `untyped rune`, `65`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top