Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for M4 (0.02 sec)

  1. test/typeparam/builtins.go

    type M2 interface {
    	map[string]int | map[string]float64
    }
    type M3 interface{ map[string]int | map[rune]int }
    type M4[K comparable, V any] interface{ map[K]V | map[rune]V }
    
    func g1[T M1](m T) {
    	delete(m, "foo")
    }
    
    func g2[T M2](m T) {
    	delete(m, "foo")
    }
    
    func g3[T M4[rune, V], V any](m T) {
    	delete(m, 'k')
    }
    
    // make
    
    func m1[
    	S1 interface{ []int },
    	S2 interface{ []int | chan int },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/decls0.go

    func (S0) m1 (x S0.m1 /* ERROR "S0.m1 is not a type" */ ) {}
    func (S0) m2 (x *S0.m2 /* ERROR "S0.m2 is not a type" */ ) {}
    func (S0) m3 () (x S0.m3 /* ERROR "S0.m3 is not a type" */ ) { return }
    func (S0) m4 () (x *S0.m4 /* ERROR "S0.m4 is not a type" */ ) { return }
    
    // interfaces may not have any blank methods
    type BlankI interface {
    	_ /* ERROR "methods must have a unique non-blank name" */ ()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue47968.go

    func (A1[P]) m2() {}
    
    type A2 = T[int]
    
    func (A2 /* ERRORx `cannot define new methods on instantiated type (T\[int\]|A2)` */) m3()   {}
    func (_ /* ERRORx `cannot define new methods on instantiated type (T\[int\]|A2)` */ A2) m4() {}
    
    func (T[int]) m5()                                     {} // int is the type parameter name, not an instantiation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 684 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/resources/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleMetadataSerializerTest/gradle/module-with-constraints.module

            {
                "attributes": { "usage": "runtime", "packaging": "zip" },
                "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"},
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/resources/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleMetadataSerializerTest/gradle/module-with-capabilities.module

            {
                "attributes": { "usage": "runtime", "packaging": "zip" },
                "capabilities": [
                    { "group": "g1", "name": "m3", "version": "1.1" },
                    { "group": "g2", "name": "m4", "version": "2.1" }
                ],
                "name": "runtime"
            }
        ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 627 bytes
    - Viewed (0)
  6. test/fixedbugs/issue33020.dir/b.go

    package b
    
    import "./a"
    
    var N n
    
    type n struct{}
    
    func (r n) M1() int  { return a.G1 }
    func (r n) M2() int  { return a.G2 }
    func (r n) M3() int  { return a.G3 }
    func (r n) M4() int  { return a.G4 }
    func (r n) M5() int  { return a.G5 }
    func (r n) M6() int  { return a.G6 }
    func (r n) M7() int  { return a.G7 }
    func (r n) M8() int  { return a.G8 }
    func (r n) M9() int  { return a.G9 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 582 bytes
    - Viewed (0)
  7. test/fixedbugs/issue15838.dir/a.go

    	}
    }
    
    type T struct{}
    
    func (T) M1() {
    L:
    	goto L
    }
    
    func (T) M2() {
    L:
    	for {
    		break L
    	}
    }
    
    func (T) M3() {
    L:
    	for {
    		continue L
    	}
    }
    
    func (T) M4() {
    	switch {
    	case true:
    		fallthrough
    	default:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 00:32:03 UTC 2016
    - 541 bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue48703.go

    func (R[P]) m1(R[R[P]])                                   {}
    func (R[P]) m2(R[*P])                                     {}
    func (R[P]) m3([unsafe.Sizeof(new(R[P]))]int)             {}
    func (R[P]) m4([unsafe.Sizeof(new(R[R[P]]))]int)          {}
    
    // Mutual recursion
    type M[P any] int
    
    func (R[P]) m5(M[M[P]]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 769 bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/resources/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleMetadataSerializerTest/gradle/module-with-dependencies.module

            {
                "attributes": { "usage": "runtime", "packaging": "zip" },
                "dependencies": [
                    { "module": "m3", "group": "g3", "version": { "prefers": "v3" }},
                    { "module": "m4", "version": { "requires": "v4", "prefers": "v3", "rejects": ["v5"] }, "group": "g4"},
                    { "module": "m5", "version": { "prefers": "v5", "rejects": ["v6", "v7"] }, "group": "g5"},
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactoryTest.groovy

            moduleIdSet(["g1", "m1"], ["g2", "m2"], ["g3", "m3"], ["g4", "m4"]) | moduleSet("m1", "m2")                       | anyOf(moduleIdSet(["g3", "m3"], ["g4", "m4"]), moduleSet("m1", "m2"))
    
            moduleId("g1", "m1")                                                | groupSet("g1", "g2")                        | groupSet("g1", "g2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top