Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for predeclared (0.26 sec)

  1. src/internal/types/testdata/check/decls0.go

    	F2 func(x, y, z float32)
    	F3 func(x, y, x /* ERROR "redeclared" */ float32)
    	F4 func() (x, y, x /* ERROR "redeclared" */ float32)
    	F5 func(x int) (x /* ERROR "redeclared" */ float32)
    	F6 func(x ...int)
    
    	I1 interface{}
    	I2 interface {
    		m1()
    	}
    	I3 interface {
    		m1()
    		m1 /* ERROR "duplicate method m1" */ ()
    	}
    	I4 interface {
    		m1(x, y, x /* ERROR "redeclared" */ float32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
Back to top