- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 507 for bland (0.14 sec)
-
test/fixedbugs/issue38905.go
// 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. // Make sure that literal value can be passed to struct // blank field with expressions where candiscard(value) // returns false, see #38905. package p type t struct{ _ u } type u [10]struct{ f int } func f(x int) t { return t{u{{1 / x}, {1 % x}}} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 15 03:09:21 UTC 2020 - 509 bytes - Viewed (0) -
src/internal/types/testdata/check/labels.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.2K bytes - Viewed (0) -
test/typeparam/issue50481b.dir/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that type substitution and export/import works correctly even for a method of // a generic type that has multiple blank type params. package main import ( "./b" "fmt" ) func main() { foo := &b.Foo[string, int]{ ValueA: "i am a string", ValueB: 123, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 559 bytes - Viewed (0) -
src/internal/types/testdata/examples/methods.go
func (t T2[X, Y, Z]) m3() (X, Y, Z) { return t.a, t.b, t.c } // Type parameters may be left blank if they are not needed: func (t T2[A, _, C]) m4() (A, C) { return t.a, t.c } func (t T2[_, _, X]) m5() X { return t.c } func (t T2[_, _, _]) m6() {} // As usual, blank names may be used for any object which we don't care about // using later. For instance, we may write an unnamed method with a receiver
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer_test.go
// a trailing comma always indicates a (possibly invalid) type parameter list (blank after type parameter list and type) dup("package p; type _[P *T,] struct{}"), dup("package p; type _[P *T | T,] struct{}"), dup("package p; type _[P *T | <-T | T,] struct{}"), // slice/array type declarations (no blank between array length and element type) dup("package p; type _ []byte"), dup("package p; type _ [n]byte"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 17:08:18 UTC 2023 - 7.6K bytes - Viewed (0) -
test/fixedbugs/issue9521.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. // Test that an incorrect use of the blank identifier is caught. // Does not compile. package main func f() (_, _ []int) { return } func g() (x []int, y float64) { return } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 12 23:07:01 UTC 2021 - 597 bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy
*/ """) } def "no spaces at the end of blank comment lines"() { when: builder.fileComment("\nnot-a-blank\n\nnot-a-blank"); builder.create(target).generate() then: assertOutputFile("""/* * This file was generated by the Gradle 'init' task. * * not-a-blank * * not-a-blank */ """) } def "can add kotlin build script comment"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 18 14:16:33 UTC 2023 - 16.1K bytes - Viewed (0) -
platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/DefaultManifest.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 13.8K bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy
*/ """) } def "no spaces at the end of blank comment lines"() { when: builder.fileComment("\nnot-a-blank\n\nnot-a-blank") builder.create(target).generate() then: assertOutputFile("""$COMMON_START * * not-a-blank * * not-a-blank */ """) } def "can add groovy build script comment"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 18 14:16:33 UTC 2023 - 16.2K bytes - Viewed (0) -
test/typeparam/issue50419.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that type substitution works correctly even for a method of a generic type // that has multiple blank type params. package main import ( "fmt" ) func main() { foo := &Foo[string, int]{ valueA: "i am a string", valueB: 123, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 689 bytes - Viewed (0)