Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for G4 (0.17 sec)

  1. src/internal/types/testdata/fixedbugs/issue60377.go

    // Therefore we can infer a type argument in this case.
    
    type S[P any] struct{}
    
    func g4[P any](S[P]) {}
    
    func _() {
    	var x S[int]
    	g4(x)      // we can infer int for P
    	g4[int](x) // int is the correct type argument
    	g4[string](x /* ERROR "cannot use x (variable of type S[int]) as S[string] value in argument to g4[string]" */)
    }
    
    // This is similar to the first example but here T1 is a component
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue59338.go

    	if f2(2) != "" {
    		panic(2)
    	}
    
    	if g3(g1, 3) != g1(3) {
    		panic(3)
    	}
    
    	if g4(g2, 4) != "" {
    		panic(4)
    	}
    }
    
    func g1[P any](x P) P    { return x }
    func g2[P, Q any](x P) Q { var q Q; return q }
    
    func g3(f1 func(int) int, x int) int       { return f1(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 22:12:27 UTC 2023
    - 700 bytes
    - Viewed (0)
  3. test/fixedbugs/bug273.go

    }
    
    func bigcap() {
    	g1 = make([]block, 10, big)
    }
    
    type cblock [1<<16 - 1]byte
    
    var g4 chan cblock
    
    func badchancap() {
    	g4 = make(chan cblock, minus1)
    }
    
    func bigchancap() {
    	g4 = make(chan cblock, big)
    }
    
    func overflowchan() {
    	const ptrSize = unsafe.Sizeof(uintptr(0))
    	g4 = make(chan cblock, 1<<(30*(ptrSize/4)))
    }
    
    func main() {
    	shouldfail(badlen, "badlen")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 14:06:28 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  4. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/Antlr4PluginIntegrationTest.groovy

        private goodGrammar() {
            file("grammar-builder/src/main/antlr/org/acme/Test.g4") << """grammar Test;
                @header {
                    package org.acme;
                }
                r  : 'hello' ID ;
                ID : [a-z]+ ;
                WS : [ \\t\\r\\n]+ -> skip ;
            """
    
            file("grammar-builder/src/main/antlr/Another.g4") << """grammar Another;
                r  : 'hello' ID ;
                ID : [a-z]+ ;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/data_flow_grad.cc

      // dynamic_partition(data, partitions, num_partitions) = {
      //   [10, 20, 50],
      //   [30, 40]
      // }
      // grads = {
      //   [g1, g2, g3],
      //   [g4, g5]
      // }
      // The desired propagation of the gradients back to the data inputs is:
      // [g1, g2, g4, g5, g3]
      auto data = op.input(0);
      auto partitions = op.input(1);
      int32_t num_partitions;
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jul 24 13:40:35 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  6. test/method4.dir/prog.go

    	g3 := method4a.I1.Sum
    	eq(g3(mt1, a, 38), 48)
    	eq(g3(mt2, a, 39), 49)
    
    	eq(method4a.I2.Sum(mt1, a, 40), 50)
    	eq(method4a.I2.Sum(mt2, a, 41), 51)
    
    	g4 := method4a.I2.Sum
    	eq(g4(mt1, a, 42), 52)
    	eq(g4(mt2, a, 43), 53)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 07 12:26:48 UTC 2014
    - 1.7K bytes
    - Viewed (0)
  7. test/fixedbugs/issue33020.dir/a.go

    // 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.
    
    package a
    
    var G1 int
    var G2 int
    var G3 int
    var G4 int
    var G5 int
    var G6 int
    var G7 int
    var G8 int
    var G9 int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 18 11:34:23 UTC 2019
    - 282 bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/IntersectionsTest.groovy

            anyOf(moduleIdSet(["G:A"], ["G2:P"]), groupSet("G3", "G4"))                                                    | moduleIdSet(["G5", "A"], ["G6", "B"])                                                                                 | nothing()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. platforms/software/publish/src/test/groovy/org/gradle/api/publish/internal/metadata/GradleModuleMetadataWriterTest.groovy

            d3.versionConstraint >> requires("v3")
            d3.transitive >> true
            d3.excludeRules >> [new DefaultExcludeRule("g4", "m4"), new DefaultExcludeRule(null, "m5"), new DefaultExcludeRule("g5", null)]
            d3.attributes >> ImmutableAttributes.EMPTY
    
            def d4 = Stub(ExternalDependency)
            d4.group >> "g4"
            d4.name >> "m4"
            d4.versionConstraint >> requires('')
            d4.transitive >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 07:21:42 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/resources/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleMetadataSerializerTest/gradle/module-with-constraints.module

                "dependencyConstraints": [
                    { "module": "m3", "group": "g3", "version": { "prefers": "v3" }},
                    { "module": "m4", "version": { "requires": "v4", "strictly": "v4a", "rejects": ["v5"] }, "group": "g4"},
                    { "module": "m5", "version": { "prefers": "v5", "rejects": ["v6", "v7"] }, "group": "g5"},
                    { "module": "m6", "version": { "rejects": ["+"] }, "group": "g6"},
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top