Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 432 for bland (0.04 sec)

  1. 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)
  2. src/internal/types/testdata/check/labels.go

    		continue L2 /* ERROR "invalid continue label L2" */
    		continue L3
    		goto L1
    		goto L2
    		goto L3
    	}
    }
    
    // Blank labels are never declared.
    
    func f4() {
    _:
    _: // multiple blank labels are ok
    	goto _ /* ERROR "label _ not declared" */
    }
    
    func f5() {
    _:
    	for {
    		break _ /* ERROR "invalid break label _" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/DefaultManifest.java

         * without prior blank lines, Java Manifest class doesn't. Ant Manifest class supports manifest without last line blank, Java Manifest class doesn't. Therefore we need to insert blank lines before
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. 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)
  10. pilot/pkg/config/kube/gateway/generation_adapter.go

     limitations under the License.
    */
    
    package gateway
    
    type gatewayGeneration struct {
    	inner any
    }
    
    func (g *gatewayGeneration) SetObservedGeneration(i int64) {
    	// Intentionally blank.  The observed generation of a gateway
    	// status type is contained in the individual conditions
    	// not at the top level, and is the responsibility
    	// of the condition functions to update.
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 969 bytes
    - Viewed (0)
Back to top