Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 210 for predeclared (1.61 sec)

  1. src/internal/types/testdata/check/decls2/decls2b.go

    	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
    func f_double /* ERROR "redeclared" */ () {}
    
    // Blank methods need to be type-checked.
    // Verify by checking that errors are reported.
    func (T /* ERROR "undefined" */ ) _() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. 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)
  3. test/method1.go

    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)
  4. test/fixedbugs/issue6772.go

    package p
    
    func f1() {
    	for a, a := range []int{1, 2, 3} { // ERROR "a.* repeated on left side of :=|a redeclared"
    		println(a)
    	}
    }
    
    func f2() {
    	var a int
    	for a, a := range []int{1, 2, 3} { // ERROR "a.* repeated on left side of :=|a redeclared"
    		println(a)
    	}
    	println(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 454 bytes
    - Viewed (0)
  5. test/import1.go

    // Does not compile.
    
    package main
    
    import "bufio"	// ERROR "previous|not used"
    import bufio "os"	// ERROR "redeclared|redefinition|incompatible" "imported and not used|imported as bufio and not used"
    
    import (
    	"fmt"	// ERROR "previous|not used"
    	fmt "math"	// ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt|imported as fmt and not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 703 bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/main0.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main()
    func main /* ERROR "no arguments and no return values" */ /* ERROR "redeclared" */ (int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 365 bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/go/testdata/script/list_issue_59905.txt

    -- wanterr_59905 --
    [# test/main/level1a
    level1a${/}pkg.go:5:2: level2x redeclared in this block
    	level1a${/}pkg.go:4:2: other declaration of level2x
    level1a${/}pkg.go:5:2: "test/main/level1a/level2y" imported as level2x and not used
    level1a${/}pkg.go:8:39: undefined: level2y
     # test/main/level1b
    level1b${/}pkg.go:5:2: level2x redeclared in this block
    	level1b${/}pkg.go:4:2: other declaration of level2x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 17:34:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. test/assign.go

    		*x = y             // ok
    		_ = x
    		_ = y
    	}
    	{
    		var x = 1
    		{
    			x, x := 2, 3 // ERROR ".*x.* repeated on left side of :=|x redeclared in this block"
    			_ = x
    		}
    		_ = x
    	}
    	{
    		a, a := 1, 2 // ERROR ".*a.* repeated on left side of :=|a redeclared in this block"
    		_ = a
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 1K bytes
    - Viewed (0)
  10. test/fixedbugs/issue47201.dir/b.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func Println() {} // ERROR "Println redeclared in this block|Println already declared"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 16:24:32 UTC 2021
    - 277 bytes
    - Viewed (0)
Back to top