Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 659 for errorCheck (0.3 sec)

  1. test/fixedbugs/issue6703u.go

    // errorcheck
    
    // Copyright 2014 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.
    
    // Check for cycles in a pointer literal's method value.
    
    package ptrlitmethvalue
    
    type T int
    
    func (*T) pm() int {
    	_ = x
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 384 bytes
    - Viewed (0)
  2. test/fixedbugs/issue6703w.go

    // errorcheck
    
    // Copyright 2014 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.
    
    // Check for cycles in a pointer value's method value.
    
    package ptrmethvalue
    
    type T int
    
    func (*T) pm() int {
    	_ = x
    	return 0
    }
    
    var (
    	p *T
    	x = p.pm // ERROR "initialization cycle|depends upon itself"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 382 bytes
    - Viewed (0)
  3. test/fixedbugs/issue4264.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 4264: reject int division by const 0
    
    package main
    
    func main() {
    	var x int
    	var y float64
    	var z complex128
    
    	println(x/0) // ERROR "division by zero"
    	println(y/0)
    	println(z/0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 30 19:21:08 UTC 2013
    - 366 bytes
    - Viewed (0)
  4. test/fixedbugs/bug318.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 1411.
    
    package main
    
    const ui uint = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 256 bytes
    - Viewed (0)
  5. test/fixedbugs/issue12944.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 main
    
    import "unsafe"
    
    const (
    	_ = unsafe.Sizeof([0]byte{}[0]) // ERROR "out of bounds"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 15 20:56:58 UTC 2015
    - 274 bytes
    - Viewed (0)
  6. test/fixedbugs/issue20813.go

    // errorcheck
    
    // Copyright 2017 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 f() {
    	1 = 2 // ERROR "cannot assign to 1|invalid left hand side"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 259 bytes
    - Viewed (0)
  7. test/fixedbugs/issue49003.go

    // errorcheck
    
    // 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 p
    
    func f(s string) int {
    	for range s {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 15 19:54:44 UTC 2021
    - 255 bytes
    - Viewed (0)
  8. test/fixedbugs/issue6406.go

    // errorcheck
    
    // Copyright 2014 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() {
    	s = "bob" // ERROR "undefined.*s"
    	_ = s // ERROR "undefined.*s"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 03 20:03:20 UTC 2014
    - 271 bytes
    - Viewed (0)
  9. test/fixedbugs/issue7538a.go

    // errorcheck
    
    // Copyright 2014 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 7538: blank (_) labels handled incorrectly
    
    package p
    
    func f() {
    _:
    _:
    	goto _ // ERROR "not defined|undefined label"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 305 bytes
    - Viewed (0)
  10. test/syntax/if.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.
    
    package main
    
    func x() {
    }
    
    func main() {
    	if {  // ERROR "missing condition"
    	}
    	
    	if x(); {  // ERROR "missing condition"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 304 bytes
    - Viewed (0)
Back to top