Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Mi (0.02 sec)

  1. test/fixedbugs/bug514.go

    type myInt struct {
    	f *notInHeap
    }
    
    func (mi myInt) Get() int {
    	return int(mi.f.i)
    }
    
    type embed struct {
    	*myInt
    }
    
    var val = 1234
    
    var valNotInHeap = notInHeap{i: val}
    
    func main() {
    	i := val
    	check(i)
    	mi := myInt{f: &valNotInHeap}
    	check(mi.Get())
    	ifv := iface(mi)
    	check(ifv.Get())
    	ifv = iface(&mi)
    	check(ifv.Get())
    	em := embed{&mi}
    	check(em.Get())
    	ifv = em
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 15:27:18 UTC 2022
    - 782 bytes
    - Viewed (0)
  2. src/internal/types/testdata/spec/range.go

    	}
    	for i = range f7 {
    		_ = i
    	}
    	for mi, _ := range f8 {
    		_ = mi
    	}
    	for mi, _ = range f8 {
    		_ = mi
    	}
    	for mi, ms := range f8 {
    		_, _ = mi, ms
    	}
    	for i /* ERROR "cannot use i (value of type MyInt) as int value in assignment" */, s /* ERROR "cannot use s (value of type MyString) as string value in assignment" */ = range f8 {
    		_, _ = mi, ms
    	}
    	for mi, ms := range f8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 04:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DefaultImmutableModuleIdentifierFactory.java

            ModuleIdentifier mi = module(group, name);
            return moduleWithVersion(mi, version);
        }
    
        @Override
        public ModuleVersionIdentifier moduleWithVersion(ModuleIdentifier mi, String version) {
            Map<String, ModuleVersionIdentifier> byVersion = idToVersions.get(mi);
            if (byVersion == null) {
                byVersion = idToVersions.computeIfAbsent(mi, k -> new ConcurrentHashMap<>());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. pkg/test/config/mock_config.pb.go

    	*x = MockConfig{}
    	if protoimpl.UnsafeEnabled {
    		mi := &file_pkg_test_config_mock_config_proto_msgTypes[0]
    		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    		ms.StoreMessageInfo(mi)
    	}
    }
    
    func (x *MockConfig) String() string {
    	return protoimpl.X.MessageStringOf(x)
    }
    
    func (*MockConfig) ProtoMessage() {}
    
    func (x *MockConfig) ProtoReflect() protoreflect.Message {
    	mi := &file_pkg_test_config_mock_config_proto_msgTypes[0]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 03 17:06:22 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  5. test/typeparam/mdempsky/13.go

    	F[*MyMer](&mm)
    	F[struct{ MyMer }](ms2)
    	F[struct{ *MyMer }](ms3)
    	F[*struct{ MyMer }](&ms2)
    	F[*struct{ *MyMer }](&ms3)
    
    	// Testing G with a concrete type args
    	mi := MyInt(-3)
    	G[MyInt,MyInt](mi)
    
    	// Interface Abs[MyInt] holding an mi.
    	intMi := Abs[MyInt](mi)
    	// First type arg here is Abs[MyInt], an interface type.
    	G[Abs[MyInt],MyInt](intMi)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 14 17:55:47 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. src/container/ring/ring_test.go

    	}
    	if r.Move(-N) != r {
    		t.Errorf("r.Move(%d) != r", -N)
    	}
    	for i := 0; i < 10; i++ {
    		ni := N + i
    		mi := ni % N
    		if r.Move(ni) != r.Move(mi) {
    			t.Errorf("r.Move(%d) != r.Move(%d)", ni, mi)
    		}
    		if r.Move(-ni) != r.Move(-mi) {
    			t.Errorf("r.Move(%d) != r.Move(%d)", -ni, -mi)
    		}
    	}
    }
    
    func TestCornerCases(t *testing.T) {
    	var (
    		r0 *Ring
    		r1 Ring
    	)
    	// Basics
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/gover/mod.go

    func ModSort(list []module.Version) {
    	sort.Slice(list, func(i, j int) bool {
    		mi := list[i]
    		mj := list[j]
    		if mi.Path != mj.Path {
    			return mi.Path < mj.Path
    		}
    		// To help go.sum formatting, allow version/file.
    		// Compare semver prefix by semver rules,
    		// file by string order.
    		vi := mi.Version
    		vj := mj.Version
    		var fi, fj string
    		if k := strings.Index(vi, "/"); k >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:18:46 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/types/testdata/spec/range_int.go

    	}
    
    	var i int
    	var mi MyInt
    	for i := range 10 {
    		_ = i
    	}
    	for i = range 10 {
    		_ = i
    	}
    	for i, j /* ERROR "range over 10 (untyped int constant) permits only one iteration variable" */ := range 10 {
    		_, _ = i, j
    	}
    	for i = range MyInt /* ERROR "cannot use MyInt(10) (constant 10 of type MyInt) as int value in range clause" */ (10) {
    		_ = i
    	}
    	for mi := range MyInt(10) {
    		_ = mi
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGClassListener.java

        /**
         * for compatibility reasons with testng 6.9.10
         */
        void onBeforeClass(ITestClass testClass, IMethodInstance mi);
    
        void onAfterClass(ITestClass testClass);
    
        /**
         * for compatibility reasons with testng 6.9.10
         */
        void onAfterClass(ITestClass testClass, IMethodInstance mi);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/const1.go

    // license that can be found in the LICENSE file.
    
    // constant conversions
    
    package const1
    
    import "math"
    
    const(
    	mi = ^int(0)
    	mu = ^uint(0)
    	mp = ^uintptr(0)
    
    	logSizeofInt     = uint(mi>>8&1 + mi>>16&1 + mi>>32&1)
    	logSizeofUint    = uint(mu>>8&1 + mu>>16&1 + mu>>32&1)
    	logSizeofUintptr = uint(mp>>8&1 + mp>>16&1 + mp>>32&1)
    )
    
    const (
    	minInt8 = -1<<(8<<iota - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top