- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 260 for caught (0.17 sec)
-
test/blank1.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. // Test that incorrect uses of the blank identifier are caught. // Does not compile. package _ // ERROR "invalid package name" var t struct { _ int } func (x int) _() { // ERROR "methods on non-local type" println(x) } type T struct { _ []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 20:13:36 UTC 2020 - 724 bytes - Viewed (0) -
test/typeswitch2b.go
// errorcheck // Copyright 2019 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 various erroneous type switches are caught by the compiler. // Does not compile. package main func notused(x interface{}) { // The first t is in a different scope than the 2nd t; it cannot // be accessed (=> declared and not used error); but it is legal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 598 bytes - Viewed (0) -
test/fixedbugs/issue15013.go
// license that can be found in the LICENSE file. // CL 21202 introduced a compiler crash in the handling of a varargs // function in the same recursive group as a function that calls it. // Nothing in the standard library caught the problem, so adding a test. package p func F1(p *int, a ...*int) (int, *int) { if p == nil { return F2(), a[0] } return 0, a[0] } func F2() int { var i0, i1 int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 559 bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheLoader.java
* treated like any other {@code Exception} in all respects except that, when it is caught, * the thread's interrupt status is set * @since 11.0 */ public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception { // This will be caught by getAll(), causing it to fall back to multiple calls to // LoadingCache.get throw new UnsupportedLoadingOperationException();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 19 20:20:14 UTC 2022 - 9.6K bytes - Viewed (0) -
test/fixedbugs/issue15091.go
package sample type Html struct { headerIDs map[string]int } // We don't want to see: // internal error: (*Html).xyzzy autotmp_3 (type *int) recorded as live on entry, p.Pc=0 // or (now, with the error caught earlier) // Treating auto as if it were arg, func (*Html).xyzzy, node ... // caused by racewalker inserting instrumentation before an OAS where the Ninit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 989 bytes - Viewed (0) -
test/typeswitch3.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. // Verify that erroneous type switches are caught by the compiler. // Issue 2700, among other things. // Does not compile. package main import ( "io" ) type I interface { M() } func main() { var x I switch x.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 12 22:20:51 UTC 2021 - 999 bytes - Viewed (0) -
test/import4.dir/import4.go
// 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. // Verify that various kinds of "imported and not used" // errors are caught by the compiler. // Does not compile. package main // standard import "fmt" // ERROR "imported and not used.*fmt|\x22fmt\x22 imported and not used" // renamed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 877 bytes - Viewed (0) -
test/assign.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. // Verify simple assignment errors are caught by the compiler. // Does not compile. package main import "sync" type T struct { int sync.Mutex } func main() { { var x, y sync.Mutex x = y // ok _ = x } { var x, y T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 20:13:36 UTC 2020 - 1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedSet.java
* * @since 7.0 */ @Override protected boolean standardContains(@CheckForNull Object object) { try { // any ClassCastExceptions and NullPointerExceptions are caught @SuppressWarnings({"unchecked", "nullness"}) SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; Object ceiling = self.tailSet(object).first();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.7K bytes - Viewed (0) -
test/initializerr.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. // Verify that erroneous initialization expressions are caught by the compiler // Does not compile. package main type S struct { A, B, C, X, Y, Z int } type T struct { S } var x = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 1.1K bytes - Viewed (0)