- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,044 for IsSwitch (0.14 sec)
-
src/net/platform_test.go
func testableNetwork(network string) bool { net, _, _ := strings.Cut(network, ":") switch net { case "ip+nopriv": case "ip", "ip4", "ip6": switch runtime.GOOS { case "plan9": return false default: if os.Getuid() != 0 { return false } } case "unix", "unixgram": switch runtime.GOOS { case "android", "ios", "plan9", "windows": return false case "aix":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 4.3K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue50965.go
// license that can be found in the LICENSE file. package p func _(x int, c string) { switch x { case c /* ERROR "invalid case c in switch on x (mismatched types string and int)" */ : } } func _(x, c []int) { switch x { case c /* ERROR "invalid case c in switch on x (slice can only be compared to nil)" */ : }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 431 bytes - Viewed (0) -
test/alias1.go
package main func main() { var x interface{} x = byte(1) switch x.(type) { case uint8: // ok default: panic("byte != uint8") } x = uint8(2) switch x.(type) { case byte: // ok default: panic("uint8 != byte") } rune32 := false x = rune(3) switch x.(type) { case int: // ok case int32: // must be new code rune32 = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 803 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
} t := pass.TypesInfo.Types[call.Args[argidx]].Type switch t.Underlying().(type) { case *types.Pointer, *types.Interface, *types.TypeParam: return } switch argidx { case 0: pass.Reportf(call.Lparen, "call of %s passes non-pointer", fn.Name()) case 1: pass.Reportf(call.Lparen, "call of %s passes non-pointer as second argument", fn.Name()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0) -
src/internal/types/testdata/check/gotos.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 5.8K bytes - Viewed (0) -
test/fixedbugs/issue4518.go
return 3, 7 } func bogus1(d interface{}) (int, int) { switch { default: return F(d) } return 0, 0 } func bogus2() (int, int) { switch { default: return F(3) } return 0, 0 } func bogus3(d interface{}) (int, int) { switch { default: return G() } return 0, 0 } func bogus4() (int, int) { switch { default: return G() } return 0, 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 942 bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/BuildLogicChangeFixture.groovy
} """ writeBuildLogicPlugin() writeGreetTask "GreetTask", ORIGINAL_GREETING switch (kind) { case Kind.CHANGE_RESOURCE: writeResource "" break } } void applyChange() { switch (kind) { case Kind.CHANGE_SOURCE: writeGreetTask "GreetTask", CHANGED_GREETING break
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 7.2K bytes - Viewed (0) -
test/fixedbugs/bug248.dir/bug3.go
panic("fail") } // check that type switch works. // the worry is that if p0.T and p1.T have the same hash, // the binary search will handle one of them incorrectly. for j := 0; j < 3; j++ { switch j { case 0: i = p0.T{} case 1: i = p1.T{} case 2: i = 3.14 } switch i.(type) { case p0.T: if j != 0 { println("type switch p0.T") panic("fail") } case p1.T:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 26 15:20:42 UTC 2018 - 1.9K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51533.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 394 bytes - Viewed (0) -
test/fixedbugs/issue33460.go
one two three ) const iii int = 0x3 func f(v int) { switch v { case zero, one: case two, one: // ERROR "previous case at LINE-1|duplicate case .*in.* switch" case three: case 3: // ERROR "previous case at LINE-1|duplicate case .*in.* switch" case iii: // ERROR "previous case at LINE-2|duplicate case .*in.* switch" } } const b = "b" var _ = map[string]int{ "a": 0, b: 1,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 825 bytes - Viewed (0)