Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Islands (0.07 sec)

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

    		if !check.validType0(pos, t.Origin().fromRHS, append(nest, t), append(path, t)) {
    			return false
    		}
    
    		// see TODO above
    		// check.valids.add(t) // t is valid
    
    	case *TypeParam:
    		// A type parameter stands for the type (argument) it was instantiated with.
    		// Check the corresponding type argument for validity if we are in an
    		// instantiated type.
    		if d := len(nest) - 1; d >= 0 {
    			inst := nest[d] // the type instance
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    		P := NewTypeName(nopos, nil, "P", nil)    // [P ~string | []byte]
    		makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{u})))
    	}
    }
    
    func TestIssue51093(t *testing.T) {
    	// Each test stands for a conversion of the form P(val)
    	// where P is a type parameter with typ as constraint.
    	// The test ensures that P(val) has the correct type P
    	// and is not a constant.
    	var tests = []struct {
    		typ string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. doc/go_spec.html

    must either all be present or all be absent. If present, each name
    stands for one item (parameter or result) of the specified type and
    all non-<a href="#Blank_identifier">blank</a> names in the signature
    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    If absent, each type stands for one item of that type.
    Parameter and result
    lists are always parenthesized except that if there is exactly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    			t.Fatalf("got %v, want %s", p, want)
    		}
    	}()
    	LookupFieldOrMethod(nil, false, nil, "")
    }
    
    func TestLookupFieldOrMethod(t *testing.T) {
    	// Test cases assume a lookup of the form a.f or x.f, where a stands for an
    	// addressable value, and x for a non-addressable value (even though a variable
    	// for ease of test case writing).
    	var tests = []struct {
    		src      string
    		found    bool
    		index    []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    must either all be present or all be absent. If present, each name
    stands for one item (parameter or result) of the specified type and
    all non-<a href="#Blank_identifier">blank</a> names in the signature
    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    If absent, each type stands for one item of that type.
    Parameter and result
    lists are always parenthesized except that if there is exactly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top