Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 659 for errorCheck (0.13 sec)

  1. test/syntax/import.go

    // errorcheck
    
    // Copyright 2010 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 (
    	"io",	// ERROR "unexpected comma"
    	"os"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 243 bytes
    - Viewed (0)
  2. test/fixedbugs/bug103.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 f() /* no return type */ {}
    
    func main() {
    	x := f();  // ERROR "mismatch|as value|no type"
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 18:13:13 UTC 2023
    - 296 bytes
    - Viewed (0)
  3. test/fixedbugs/bug351.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
    
    var x int
    
    func main() {
    	(x) := 0  // ERROR "non-name [(]x[)]|non-name on left side"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 277 bytes
    - Viewed (0)
  4. test/fixedbugs/issue23116.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 f(x interface{}) {
    	switch x.(type) {
    	}
    
    	switch t := x.(type) { // ERROR "declared and not used"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 295 bytes
    - Viewed (0)
  5. test/fixedbugs/issue20233.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.
    
    // Issue 20233: panic while formatting an error message
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 21:53:49 UTC 2017
    - 286 bytes
    - Viewed (0)
  6. test/fixedbugs/issue42075.go

    // errorcheck
    
    // Copyright 2020 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
    
    import "unsafe"
    
    type T struct { // ERROR "recursive type"
    	x int
    	p unsafe.Pointer
    
    	f T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 19 21:30:43 UTC 2020
    - 278 bytes
    - Viewed (0)
  7. test/syntax/semi3.go

    // errorcheck
    
    // Copyright 2010 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() {
    	for x; y; z	// ERROR "expected .*{.* after for clause|undefined"
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 09 03:54:47 UTC 2017
    - 305 bytes
    - Viewed (0)
  8. test/fixedbugs/issue13539.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.
    
    // Verify that a label named like a package is recognized
    // as a label rather than a package and that the package
    // remains unused.
    
    package main
    
    import "math" // ERROR "imported and not used"
    
    func main() {
    math:
    	for {
    		break math
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 417 bytes
    - Viewed (0)
  9. test/fixedbugs/issue22921.go

    // errorcheck -d=panic
    
    // Copyright 2020 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 "bytes"
    
    type _ struct{ bytes.nonexist } // ERROR "unexported|undefined"
    
    type _ interface{ bytes.nonexist } // ERROR "unexported|undefined|expected signature or type name"
    
    func main() {
    	var _ bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 05 18:46:16 UTC 2021
    - 467 bytes
    - Viewed (0)
  10. test/fixedbugs/bug208.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
    {
    	f int;
    }
    
    // 6g used to get confused by the f:1 above
    // and allow uses of f that would be silently
    // dropped during the compilation.
    var _ = f;	// ERROR "undefined"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 391 bytes
    - Viewed (0)
Back to top