Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,182 for redeclared (0.23 sec)

  1. test/funcdup.go

    	F2(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    	F3() (i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    }
    
    type T1 func(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    type T2 func(i int) (i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  2. test/funcdup2.go

    	F2(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    	F3() (i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    }
    
    var T1 func(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    var T2 func(i int) (i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 721 bytes
    - Viewed (0)
  3. test/declbad.go

    	{
    		// simple redeclaration
    		i := f1()
    		i := f1() // ERROR "redeclared|no new"
    		_ = i
    	}
    	{
    		// change of type for f
    		i, f, s := f3()
    		f, g, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use"
    		_, _, _, _, _ = i, f, s, g, t
    	}
    	{
    		// change of type for i
    		i, f, s := f3()
    		j, i, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use"
    		_, _, _, _, _ = i, f, s, j, t
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 14 07:12:37 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/types/testdata/check/decls2/decls2b.go

    const pi = 3.1415
    
    func (T1) m /* ERROR "already declared" */ () {}
    func (T2) m(io.Writer) {}
    
    type T3 struct {
    	f *T3
    }
    
    type T6 struct {
    	x int
    }
    
    func (t *T6) m1() int {
    	return t.x
    }
    
    func f() {
    	var t *T6
    	t.m1()
    }
    
    // Double declarations across package files
    const c_double /* ERROR "redeclared" */ = 0
    type t_double  /* ERROR "redeclared" */ int
    var v_double /* ERROR "redeclared" */ int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. test/method1.go

    func (t *T) M(int, float64) {} // ERROR "already declared|redefinition"
    
    func (t T) H()  // GCCGO_ERROR "previous"
    func (t *T) H() {} // ERROR "already declared|redefinition"
    
    func f(int, string)  // GCCGO_ERROR "previous"
    func f(int, float64) {} // ERROR "redeclared|redefinition"
    
    func g(a int, b string) // GCCGO_ERROR "previous"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:59:19 UTC 2022
    - 739 bytes
    - Viewed (0)
  7. test/fixedbugs/issue20415.go

    func _(f int) {
    }
    
    // 2
    var g byte
    
    func _(g int) {
    }
    
    var g interface{} // ERROR "issue20415.go:20: previous declaration|redefinition|g redeclared"
    
    // 3
    func _(h int) {
    }
    
    var h byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 638 bytes
    - Viewed (0)
  8. test/fixedbugs/issue4252.dir/a.go

    // A package that redeclares common builtin names.
    package a
    
    var true = 0 == 1
    var false = 0 == 0
    var nil = 1
    
    const append = 42
    
    type error bool
    type int interface{}
    
    func len(interface{}) int32 { return 42 }
    
    func Test() {
    	var array [append]int
    	if true {
    		panic("unexpected builtin true instead of redeclared one")
    	}
    	if !false {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 807 bytes
    - Viewed (0)
  9. test/typeparam/tparam1.go

    package tparam1
    
    // The predeclared identifier "any" may be used in place of interface{}.
    var _ any
    
    func _(_ any)
    
    type _[_ any] struct{}
    
    const N = 10
    
    type (
    	_                     []struct{}  // slice
    	_                     [N]struct{} // array
    	_[T any]              struct{}
    	_[T, T any]           struct{} // ERROR "T redeclared"
    	_[T1, T2 any, T3 any] struct{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/duperror.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    TEXT foo(SB), 0, $0
    	RET
    TEXT foo(SB), 0, $0 // ERROR "symbol foo redeclared"
    	RET
    
    GLOBL bar(SB), 0, $8
    GLOBL bar(SB), 0, $8 // ERROR "symbol bar redeclared"
    
    DATA bar+0(SB)/8, $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 05 23:21:07 UTC 2022
    - 404 bytes
    - Viewed (0)
Back to top