Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 172 for unnamed1 (0.21 sec)

  1. src/go/types/typestring.go

    			// parameterized type
    			w.tParamList(t.TypeParams().list())
    		}
    
    	case *TypeParam:
    		if t.obj == nil {
    			w.error("unnamed type parameter")
    			break
    		}
    		if i := tparamIndex(w.tparams.list(), t); i >= 0 {
    			// The names of type parameters that are declared by the type being
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/go/types/exprstring.go

    	buf.WriteByte(')')
    
    	res := sig.Results
    	n := res.NumFields()
    	if n == 0 {
    		// no result
    		return
    	}
    
    	buf.WriteByte(' ')
    	if n == 1 && len(res.List[0].Names) == 0 {
    		// single unnamed result
    		WriteExpr(buf, res.List[0].Type)
    		return
    	}
    
    	// multiple or named result(s)
    	buf.WriteByte('(')
    	writeFieldList(buf, res.List, ", ", false)
    	buf.WriteByte(')')
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typestring.go

    			// parameterized type
    			w.tParamList(t.TypeParams().list())
    		}
    
    	case *TypeParam:
    		if t.obj == nil {
    			w.error("unnamed type parameter")
    			break
    		}
    		if i := tparamIndex(w.tparams.list(), t); i >= 0 {
    			// The names of type parameters that are declared by the type being
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object_test.go

    		{NewTypeName(nopos, pkg, "t0", nil), false}, // no type yet
    		{t1, false}, // type name refers to named type and vice versa
    		{NewTypeName(nopos, nil, "t2", NewInterfaceType(nil, nil)), true}, // type name refers to unnamed type
    		{NewTypeName(nopos, pkg, "t3", n1), true},                         // type name refers to named type with different type name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskInputsTest.groovy

            inputs.file('a').skipWhenEmpty()
    
            then:
            inputs.hasInputs
            inputs.hasSourceFiles
        }
    
        @Issue("https://github.com/gradle/gradle/issues/4085")
        def "can register more unnamed properties with method #method after properties have been queried"() {
            inputs."$method"("input-1")
            // Trigger naming properties
            inputs.hasSourceFiles
            inputs."$method"("input-2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 16 20:09:26 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/expr2.go

    	_ = c1r == c1s /* ERROR "mismatched types" */
    	_ = c1 == c1a
    	_ = c1a == c1
    	_ = c1 == c2 /* ERROR "mismatched types" */
    	_ = c1a == c2 /* ERROR "mismatched types" */
    
    	// various element types (unnamed types)
    	var (
    		d1 chan int
    		d1r <-chan int
    		d1s chan<- int
    		d1a chan<- int
    		d2 chan float32
    	)
    	_ = d1 == d1
    	_ = d1 == d1r
    	_ = d1 == d1s
    	_ = d1r == d1s /* ERROR "mismatched types" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/internal/types/testdata/examples/methods.go

    func (t T2[_, _, X]) m5() X { return t.c }
    func (t T2[_, _, _]) m6() {}
    
    // As usual, blank names may be used for any object which we don't care about
    // using later. For instance, we may write an unnamed method with a receiver
    // that cannot be accessed:
    func (_ T2[_, _, _]) _() int { return 42 }
    
    // Because a receiver parameter list is simply a parameter list, we can
    // leave the receiver argument away for receiver types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/signature.go

    // receiver type parameters, type parameters, parameters, and results. If
    // variadic is set, params must hold at least one parameter and the last
    // parameter's core type must be of unnamed slice or bytestring type.
    // If recv is non-nil, typeParams must be empty. If recvTypeParams is
    // non-empty, recv must be non-nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/runtime/align_test.go

    			// aligned. We just check that foo is at a properly aligned offset.
    			t = p.Elem()
    		} else {
    			v.checkAddr(n.X)
    		}
    		if t.Underlying() == t {
    			v.t.Errorf("analysis can't handle unnamed type %s %v", v.fset.Position(n.Pos()), t)
    		}
    		key := "field " + t.String() + "." + n.Sel.Name
    		if !v.checked[key] {
    			v.t.Errorf("unchecked field %s %s", v.fset.Position(n.Pos()), key)
    		}
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. src/internal/types/testdata/examples/functions.go

    	ffrecv(recv)
    	ffrecv(send /* ERROR "does not match" */ )
    
    	ffsend(both /* ERROR "does not match" */ )
    	ffsend(recv /* ERROR "does not match" */ )
    	ffsend(send)
    }
    
    // When inferring elements of unnamed composite parameter types,
    // if the arguments are defined types, use their underlying types.
    // Even though the matching types are not exactly structurally the
    // same (one is a type literal, the other a named type), because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top