- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for funny (0.06 sec)
-
test/ddd1.go
_ = sum3(tuple()) _ = sum3(tuple()...) // ERROR "\.{3} in call to non-variadic|multiple-value|invalid use of .*[.][.][.]" ) type T []T func funny(args ...T) int { return 0 } var ( _ = funny(nil) _ = funny(nil, nil) _ = funny([]T{}) // ok because []T{} is a T; passes []T{[]T{}} ) func Foo(n int) {} func bad(args ...int) { print(1, 2, args...) // ERROR "[.][.][.]"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 22:28:39 UTC 2022 - 1.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_sync_atomic_import.txt
[short] skip [compiler:gccgo] skip # gccgo has no cover tool [!GOEXPERIMENT:coverageredesign] skip go test -short -cover -covermode=atomic -coverpkg=coverdep/p1 coverdep # In addition to the above, test to make sure there is no funny # business if we try "go test -cover" in atomic mode targeting # sync/atomic itself (see #57445). Just a short test run is needed # since we're mainly interested in making sure the test builds and can # execute at least one test.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 00:18:30 UTC 2024 - 1011 bytes - Viewed (0) -
platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec.groovy
when: run("test") then: noExceptionThrown() } // This is named funny to keep the path to the project // under Windows's limits. This checks that we can use // ServletCategory as an extension class when compiling // Groovy code. @Issue("GRADLE-3235") def gradle3235() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 3.1K bytes - Viewed (0) -
test/indirect1.go
var a0 [10]int var a1 *[10]int var a2 *[10]int = &a0 var b0 []int var b1 *[]int var b2 *[]int = &b0 var b3 []int = []int{1, 2, 3} var b4 *[]int = &b3 func f() { // this is spaced funny so that // the compiler will print a different // line number for each len call when // it decides there are type errors. x := len(m0)+ len(m1)+ // ERROR "illegal|invalid|must be"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 1.5K bytes - Viewed (0) -
test/indirect.go
var b4 *[]int = &b3 func crash() { // these uses of nil pointers // would crash but should type check println("crash", len(a1)+cap(a1)) } func nocrash() { // this is spaced funny so that // the compiler will print a different // line number for each len call if // it decides there are type errors. // it might also help in the traceback. x := len(m0) + len(m3) if x != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 1.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/gcflags_patterns.txt
stderr 'link.* -X=math.pi=3' # -ldflags applies to current directory cd my/cmd/prog go build -a -n -ldflags=-X=math.pi=3 stderr 'link.* -X=math.pi=3' # -ldflags applies to current directory even if GOPATH is funny [!case-sensitive] cd $WORK/GoPath/src/my/cmd/prog go build -a -n -ldflags=-X=math.pi=3 stderr 'link.* -X=math.pi=3' # cgo.a should not be a dependency of internally-linked go package
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 21 14:58:44 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt
# non-standard host objects. # # As of 1.21 we continue to use internal linking for programs whose # CGO use comes only from stdlib packages in the absence of any flag # funny business, however if the Go command sees flags that may be suspicious, # it signals the Go linker to invoke the external linker. # The next few tests run builds passing "-n" to the Go command, then
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 25 18:16:01 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/go/internal/web/api.go
if !utf8.ValidString(s) { return "" // Don't try to recover non-UTF-8 error messages. } for _, r := range s { if !unicode.IsGraphic(r) && !unicode.IsSpace(r) { return "" // Don't let the server do any funny business with the user's terminal. } } var detail strings.Builder for i, line := range strings.Split(s, "\n") { if strings.TrimSpace(line) == "" { break // Stop at the first blank line. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 6.9K bytes - Viewed (0) -
src/log/slog/json_handler.go
s.appendString(v.str()) case KindInt64: *s.buf = strconv.AppendInt(*s.buf, v.Int64(), 10) case KindUint64: *s.buf = strconv.AppendUint(*s.buf, v.Uint64(), 10) case KindFloat64: // json.Marshal is funny about floats; it doesn't // always match strconv.AppendFloat. So just call it. // That's expensive, but floats are rare. if err := appendJSONMarshal(s.buf, v.Float64()); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:18:11 UTC 2023 - 8.1K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/sumdb.go
} vkey, err := note.NewVerifier(key[0]) if err != nil { return "", nil, fmt.Errorf("invalid GOSUMDB: %v", err) } name := vkey.Name() // No funny business in the database name. direct, err := url.Parse("https://" + name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 15:02:47 UTC 2023 - 9.1K bytes - Viewed (0)