Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 172 for unnamed1 (0.15 sec)

  1. src/internal/types/testdata/spec/conversions.go

    func _[X Foo, T Far](x X) T {
    	return T(x /* ERROR "cannot convert x (variable of type X constrained by Foo) to type T: cannot convert Foo (in X) to type Far (in T)" */)
    }
    
    // "x's type and T are unnamed pointer types and their pointer base types
    // have identical underlying types if tags are ignored"
    
    func _[X ~*Foo, T ~*Bar](x X) T         { return T(x) }
    func _[X ~*Foo | ~*Bar, T ~*Bar](x X) T { return T(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. src/go/types/conversions.go

    	// "V and T have identical underlying types if tags are ignored
    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    		if T, ok := T.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/go/types/call.go

    		var params []*Var
    		if sig.params != nil {
    			params = sig.params.vars
    		}
    		// Be consistent about named/unnamed parameters. This is not needed
    		// for type-checking, but the newly constructed signature may appear
    		// in an error message and then have mixed named/unnamed parameters.
    		// (An alternative would be to not print parameter names in errors,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/lookup.go

    			}
    			return Typ[Invalid], true
    		}
    		return p.base, true
    	}
    	return typ, false
    }
    
    // derefStructPtr dereferences typ if it is a (named or unnamed) pointer to a
    // (named or unnamed) struct and returns its base. Otherwise it returns typ.
    func derefStructPtr(typ Type) Type {
    	if p, _ := under(typ).(*Pointer); p != nil {
    		if _, ok := under(p.base).(*Struct); ok {
    			return p.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    			for _, m := range asmUnnamedFP.FindAllStringSubmatch(line, -1) {
    				off, _ := strconv.Atoi(m[2])
    				v := fn.varByOffset[off]
    				if v != nil {
    					badf("use of unnamed argument %s; offset %d is %s+%d(FP)", m[1], off, v.name, v.off)
    				} else {
    					badf("use of unnamed argument %s", m[1])
    				}
    			}
    
    			for _, m := range asmNamedFP.FindAllStringSubmatch(line, -1) {
    				name := m[1]
    				off := 0
    				if m[2] != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  6. src/go/types/lookup.go

    			}
    			return Typ[Invalid], true
    		}
    		return p.base, true
    	}
    	return typ, false
    }
    
    // derefStructPtr dereferences typ if it is a (named or unnamed) pointer to a
    // (named or unnamed) struct and returns its base. Otherwise it returns typ.
    func derefStructPtr(typ Type) Type {
    	if p, _ := under(typ).(*Pointer); p != nil {
    		if _, ok := under(p.base).(*Struct); ok {
    			return p.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/testx.go

    #include <stdint.h>
    
    // use ugly atomic variable sync since that doesn't require calling back into
    // Go code or OS dependencies
    void issue7978c(uint32_t *sync);
    
    // issue 8331 part 2 - part 1 in test.go
    // A typedef of an unnamed struct is the same struct when
    // #include'd twice.  No runtime test; just make sure it compiles.
    #include "issue8331.h"
    
    // issue 8945
    
    typedef void (*PFunc8945)();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/internal/coverage/cformat/format.go

    			return err
    		}
    	}
    
    	return nil
    }
    
    // EmitFuncs writes out a function-level summary to the writer 'w'. A
    // note on handling function literals: although we collect coverage
    // data for unnamed literals, it probably does not make sense to
    // include them in the function summary since there isn't any good way
    // to name them (this is also consistent with the legacy cmd/cover
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/conversions.go

    	// "V and T have identical underlying types if tags are ignored
    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    		if T, ok := T.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/subr.go

    			// Conversion between two empty interfaces
    			// requires no code.
    			return ir.OCONVNOP, ""
    		}
    		if (src.Sym() == nil || dst.Sym() == nil) && !src.IsInterface() {
    			// Conversion between two types, at least one unnamed,
    			// needs no conversion. The exception is nonempty interfaces
    			// which need to have their itab updated.
    			return ir.OCONVNOP, ""
    		}
    		if src.IsShape() || dst.IsShape() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
Back to top