Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for sf (0.06 sec)

  1. test/typeparam/issue50417.go

    type A int
    type B int
    type C float64
    
    type Int interface {
    	*Sf | A
    	*Sf | B
    }
    
    func f5[P Int](p P) {
    	_ = p.f
    	p.f = 0
    }
    
    var _ = f5[*Sf]
    
    type Int2 interface {
    	*Sf | A
    	any
    	*Sf | C
    }
    
    func f6[P Int2](p P) {
    	_ = p.f
    	p.f = 0
    }
    
    var _ = f6[*Sf]
    
    type Int3 interface {
    	Sf
    	~struct{ f int }
    }
    
    func f7[P Int3](p P) {
    	_ = p.f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. cmd/batch-job-common-types.go

    // - sf.LowerBound < sz, when sf.LowerBound alone is specified
    // - sz < sf.UpperBound, when sf.UpperBound alone is specified
    // - sf.LowerBound < sz < sf.UpperBound when both are specified,
    func (sf BatchJobSizeFilter) InRange(sz int64) bool {
    	if sf.UpperBound > 0 && sz > int64(sf.UpperBound) {
    		return false
    	}
    
    	if sf.LowerBound > 0 && sz < int64(sf.LowerBound) {
    		return false
    	}
    	return true
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/condition_util.go

    func extract_bit(value, bit uint32) uint32 {
    	return (value >> bit) & 1
    }
    
    func bfxpreferred_4(sf, opc1, imms, immr uint32) bool {
    	if imms < immr {
    		return false
    	}
    	if (imms>>5 == sf) && (imms&0x1f == 0x1f) {
    		return false
    	}
    	if immr == 0 {
    		if sf == 0 && (imms == 7 || imms == 15) {
    			return false
    		}
    		if sf == 1 && opc1 == 0 && (imms == 7 ||
    			imms == 15 || imms == 31) {
    			return false
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue50417.go

    package p
    
    type Sf struct {
            f int
    }
    
    func f0[P Sf](p P) {
            _ = p.f // ERROR "p.f undefined"
            p.f /* ERROR "p.f undefined" */ = 0
    }
    
    func f0t[P ~struct{f int}](p P) {
            _ = p.f // ERROR "p.f undefined"
            p.f /* ERROR "p.f undefined" */ = 0
    }
    
    var _ = f0[Sf]
    var _ = f0t[Sf]
    
    var _ = f0[Sm /* ERROR "does not satisfy" */ ]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/groovy/pmd-rules.xml

    <?xml version="1.0"?>
    <ruleset name="Custom ruleset"
        xmlns="http://pmd.sf.net/ruleset/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
        xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
      <description>
      This ruleset checks my code for bad stuff
      </description>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 419 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/kotlin/pmd-rules.xml

    <?xml version="1.0"?>
    <ruleset name="Custom ruleset"
        xmlns="http://pmd.sf.net/ruleset/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
        xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
      <description>
      This ruleset checks my code for bad stuff
      </description>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 419 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    	cs := &fake.Clientset{}
    	sf := informers.NewSharedInformerFactory(cs, time.Duration(1)*time.Second)
    	target := initializer.New(cs, nil, sf, &TestAuthorizer{}, nil, nil, nil)
    	wantExternalKubeInformerFactory := &WantExternalKubeInformerFactory{}
    	target.Initialize(wantExternalKubeInformerFactory)
    	if wantExternalKubeInformerFactory.sf != sf {
    		t.Errorf("expected informer factory to be initialized")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/runtime/symtabinl_test.go

    			}
    
    			sf := u.srcFunc(uf)
    
    			name := sf.name()
    			const namePrefix = "runtime."
    			if stringslite.HasPrefix(name, namePrefix) {
    				name = name[len(namePrefix):]
    			}
    			if !stringslite.HasPrefix(name, "tiu") {
    				t.Errorf("tiuTest+%#x: unexpected function %s", pc-pc1, name)
    			}
    
    			start := int(sf.startLine) - tiuStart
    			if start != wantStart[name] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/reflect/visiblefields_test.go

    		name:  "SF2",
    		index: []int{3},
    	}, {
    		name:  "SF1",
    		index: []int{3, 0},
    	}, {
    		name:  "SF",
    		index: []int{3, 0, 0},
    	}, {
    		name:  "L",
    		index: []int{4},
    	}},
    }, {
    	testName: "EmbeddedPointerStruct",
    	val: struct {
    		*SF
    	}{},
    	expect: []structField{{
    		name:  "SF",
    		index: []int{0},
    	}, {
    		name:  "F",
    		index: []int{0, 0},
    	}},
    }, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 08 13:44:41 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  10. src/net/http/h2_error.go

    	}
    	src := reflect.ValueOf(e)
    	srcType := src.Type()
    	numField := srcType.NumField()
    	if dstType.NumField() != numField {
    		return false
    	}
    	for i := 0; i < numField; i++ {
    		sf := srcType.Field(i)
    		df := dstType.Field(i)
    		if sf.Name != df.Name || !sf.Type.ConvertibleTo(df.Type) {
    			return false
    		}
    	}
    	for i := 0; i < numField; i++ {
    		df := dst.Field(i)
    		df.Set(src.Field(i).Convert(df.Type()))
    	}
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 812 bytes
    - Viewed (0)
Back to top