- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 659 for errorCheck (0.1 sec)
-
test/syntax/chan.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 type xyz struct { ch chan } // ERROR "unexpected .*}.* in channel type|missing channel element type" func Foo(y chan) { // ERROR "unexpected .*\).* in channel type|missing channel element type" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 492 bytes - Viewed (0) -
test/fixedbugs/bug086.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() int { if false { return 0; } // we should not be able to return successfully w/o a return statement } // ERROR "return" func main() { print(f(), "\n"); } /*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 09 15:43:19 UTC 2013 - 440 bytes - Viewed (0) -
test/fixedbugs/issue4545.go
// errorcheck // Copyright 2012 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 4545: untyped constants are incorrectly coerced // to concrete types when used in interface{} context. package main import "fmt" func main() { var s uint fmt.Println(1.0 + 1<<s) // ERROR "invalid operation|non-integer type|incompatible type"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 511 bytes - Viewed (0) -
test/fixedbugs/issue6572.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 foo() (T, T) { // ERROR "undefined" return 0, 0 } func bar() (T, string, T) { // ERROR "undefined" return 0, "", 0 } func main() { var x, y, z int x, y = foo()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 12 23:07:01 UTC 2021 - 452 bytes - Viewed (0) -
test/fixedbugs/issue6703m.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 the method value of a value returned from a function call. package funcmethvalue type T int func (T) m() int { _ = x return 0 } func f() T { return T(0) } var ( t T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 437 bytes - Viewed (0) -
test/fixedbugs/issue6703y.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 the method value of a pointer value returned // from a function call. package funcptrmethvalue type T int func (*T) pm() int { _ = x return 0 } func pf() *T { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 447 bytes - Viewed (0) -
test/fixedbugs/issue6772.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 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 454 bytes - Viewed (0) -
test/fixedbugs/bug176.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 312 bytes - Viewed (0) -
test/fixedbugs/bug280.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. // https://golang.org/issue/808 package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 03 17:55:56 UTC 2020 - 302 bytes - Viewed (0) -
test/fixedbugs/issue16369.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 04:39:56 UTC 2023 - 302 bytes - Viewed (0)