Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 659 for errorCheck (0.44 sec)

  1. test/fixedbugs/issue14520a.go

    // errorcheck
    
    // Copyright 2016 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 f
    
    import /* // ERROR "import path" */ `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 231 bytes
    - Viewed (0)
  2. src/cmd/vet/vet_test.go

    		// argument to errorCheck as it does double duty as both a
    		// string that appears in the output, and as file name
    		// openable relative to the test directory, containing text
    		// expectations.
    		//
    		// So, we munge the file.
    		stderr = strings.ReplaceAll(stderr, filepath.FromSlash("./rangeloop.go"), filename)
    
    		if err := errorCheck(stderr, false, filename, filepath.Base(filename)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue23587.go

    // errorcheck
    
    // Copyright 2018 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 p
    
    func _(x int) {
    	_ = ~x    // unary ~ permitted but the type-checker will complain
    }
    
    func _(x int) {
    	_ = x ~ x // ERROR "unexpected ~ at end of statement"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 26 02:19:42 UTC 2022
    - 345 bytes
    - Viewed (0)
  4. test/fixedbugs/bug384.go

    // errorcheck
    
    // Copyright 2011 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.
    
    // Issue 2500
    
    package foo
    
    // Check that we only get root cause message, no further complaints about r undefined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 355 bytes
    - Viewed (0)
  5. test/fixedbugs/bug035.go

    // errorcheck
    
    // Copyright 2009 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 f9(a int) (i int, f float64) {
    	i := 9          // ERROR "redecl|no new"
    	f := float64(9) // ERROR "redecl|no new"
    	return i, f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 324 bytes
    - Viewed (0)
  6. test/fixedbugs/bug122.go

    // errorcheck
    
    // Copyright 2009 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 main() {
    	// should allow at most 2 sizes
    	a := make([]int, 10, 20, 30, 40); // ERROR "too many|expects 2 or 3 arguments; found 5"
    	_ = a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 18:13:13 UTC 2023
    - 334 bytes
    - Viewed (0)
  7. test/fixedbugs/issue4452.go

    // errorcheck
    
    // Copyright 2013 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.
    
    // Issue 4452. Used to print many errors, now just one.
    
    package main
    
    func main() {
    	_ = [...]int(4) // ERROR "\[\.\.\.\].*outside of array literal|invalid use of \[\.\.\.\] array"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 359 bytes
    - Viewed (0)
  8. test/fixedbugs/bug181.go

    // errorcheck
    
    // Copyright 2009 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
    
    type T *struct {
    	T;	// ERROR "embed.*pointer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 238 bytes
    - Viewed (0)
  9. test/fixedbugs/issue11590.go

    // errorcheck
    
    // Copyright 2015 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 p
    
    var _ = int8(4) * 300         // ERROR "overflows int8"
    var _ = complex64(1) * 1e200  // ERROR "complex real part overflow|overflows complex64"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 419 bytes
    - Viewed (0)
  10. test/fixedbugs/bug209.go

    // errorcheck
    
    // Copyright 2009 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 main() {
    	var buf [10]int;
    	for ; len(buf); {  // ERROR "bool"
    	}
    }
    
    /*
    uetli:/home/gri/go/test/bugs gri$ 6g bug209.go
    bug209.go:5: Bus error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 339 bytes
    - Viewed (0)
Back to top