Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for predeclared (0.34 sec)

  1. src/reflect/type.go

    	Name() string
    
    	// PkgPath returns a defined type's package path, that is, the import path
    	// that uniquely identifies the package, such as "encoding/base64".
    	// If the type was predeclared (string, error) or not defined (*T, struct{},
    	// []int, or A where A is an alias for a non-defined type), the package path
    	// will be the empty string.
    	PkgPath() string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    	getTypeIDs map[string]bool
    
    	// incompleteStructs contains C structs that should be marked Incomplete.
    	incompleteStructs map[string]bool
    
    	// Predeclared types.
    	bool                                   ast.Expr
    	byte                                   ast.Expr // denotes padding
    	int8, int16, int32, int64              ast.Expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. test/fixedbugs/issue28268.go

    package p
    
    type T struct {
    	a, b, c int
    	E
    }
    
    type E struct{}
    
    func (T) b()  {} // ERROR "field and method named b|redeclares struct field name|field and method with the same name b"
    func (*T) E() {} // ERROR "field and method named E|redeclares struct field name|field and method with the same name E"
    
    func _() {
    	var x T
    	_ = x.a
    	_ = x.b // no follow-on error here
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 764 bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

        }
    
        @Override
        boolean isPartialView() {
          return false;
        }
    
        @Override
        public int size() {
          return entries.size();
        }
    
        // redeclare to help optimizers with b/310253115
        @SuppressWarnings("RedundantOverride")
        @Override
        @J2ktIncompatible // serialization
        @GwtIncompatible // serialization
        Object writeReplace() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. test/alias2.go

    	A3 = reflect.Value
    	A4 = Value
    	A5 = Value
    
    	N0 A0
    )
    
    // Methods can be declared on the original named type and the alias.
    func (T0) m1()  {} // GCCGO_ERROR "previous"
    func (*T0) m1() {} // ERROR "method redeclared: T0\.m1|T0\.m1 already declared|redefinition of .m1."
    func (A0) m1()  {} // ERROR "T0\.m1 already declared|redefinition of .m1."
    func (A0) m1()  {} // ERROR "T0\.m1 already declared|redefinition of .m1."
    func (A0) m2()  {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/net/http/h2_bundle.go

    // Header), and because we didn't want to expand the ResponseWriter
    // interface, and because nobody used trailers, and because RFC 7230
    // says you SHOULD (but not must) predeclare any trailers in the
    // header, the official ResponseWriter rules said trailers in Go must
    // be predeclared, and then we reuse the same ResponseWriter.Header()
    // map to mean both Headers and Trailers. When it's time to write the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RegularImmutableMap.java

        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
        @Override
        public int size() {
          return map.size();
        }
    
        // redeclare to help optimizers with b/310253115
        @SuppressWarnings("RedundantOverride")
        @Override
        @J2ktIncompatible // serialization
        @GwtIncompatible // serialization
        Object writeReplace() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

                  return ranges.get(index + off);
                }
              }
    
              @Override
              boolean isPartialView() {
                return true;
              }
    
              // redeclare to help optimizers with b/310253115
              @SuppressWarnings("RedundantOverride")
              @Override
              @J2ktIncompatible // serialization
              Object writeReplace() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/stmt0.go

    	for _, r /* ERRORx `cannot use .* in assignment` */ = range "foo" {}
    }
    
    func issue6766b() {
    	for _ := /* ERROR "no new variables" */ range "" {}
    	for a, a /* ERROR "redeclared" */ := range "" { _ = a }
    	var a int
    	_ = a
    	for a, a /* ERROR "redeclared" */ := range []int{1, 2, 3} { _ = a }
    }
    
    // Test that despite errors in the range clause,
    // the loop body is still type-checked (and thus
    // errors reported).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

          }
    
          return Range.create(lowerBound, upperBound);
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
        // redeclare to help optimizers with b/310253115
        @SuppressWarnings("RedundantOverride")
        @Override
        @J2ktIncompatible // serialization
        Object writeReplace() {
          return super.writeReplace();
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top