Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,373 for Method1 (0.13 sec)

  1. test/method1.go

    // errorcheck
    
    // Copyright 2009 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.
    
    // Verify that method redeclarations are caught by the compiler.
    // Does not compile.
    
    package main
    
    type T struct{}
    
    func (t *T) M(int, string)  // GCCGO_ERROR "previous"
    func (t *T) M(int, float64) {} // ERROR "already declared|redefinition"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:59:19 UTC 2022
    - 739 bytes
    - Viewed (0)
  2. src/runtime/iface_test.go

    import (
    	"runtime"
    	"testing"
    )
    
    type I1 interface {
    	Method1()
    }
    
    type I2 interface {
    	Method1()
    	Method2()
    }
    
    type TS uint16
    type TM uintptr
    type TL [2]uintptr
    
    func (TS) Method1() {}
    func (TS) Method2() {}
    func (TM) Method1() {}
    func (TM) Method2() {}
    func (TL) Method1() {}
    func (TL) Method2() {}
    
    type T8 uint8
    type T16 uint16
    type T32 uint32
    type T64 uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

            then:
            result[0].method == method1
            result[0].arguments == [1, 2] as Object[]
            result[1].method == method1
            result[1].arguments == [3, 4] as Object[]
            serialized.length < invocation1Serialized.length + invocation2Serialized.length
        }
    
        def "serializes method invocations for multiple methods"() {
            def method1 = String.class.getMethod("substring", Integer.TYPE, Integer.TYPE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestResultSerializerTest.groovy

            def class1 = new TestClassResult(1, 'Class1', 1234)
            def method1 = new TestMethodResult(1, "method1", TestResult.ResultType.SUCCESS, 100, 2300)
            def method2 = new TestMethodResult(2, "method2", TestResult.ResultType.FAILURE, 200, 2700).addFailure("message", "stack-trace", "ExceptionType")
            class1.add(method1)
            class1.add(method2)
            def class2 = new TestClassResult(2, 'Class2', 5678)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/TypeInspectorTestHelper.java

        interface Item4 {
        }
    
        interface Item5 {
        }
    
        interface SuperThing {
            Runnable method1();
    
            List<Item1> method2();
    
            Map<Set<Item2>, String> method3();
        }
    
        interface GenericThing {
            Item3[] method1(String p);
            List<Item5>[] method2(String p);
        }
    
        interface Thing extends SuperThing, GenericThing {
            <T extends Item4> List<T> get();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. test/fixedbugs/bug446.go

    // license that can be found in the LICENSE file.
    
    // Issue 3824.
    // Method calls are ignored when deciding initialization
    // order.
    
    package main
    
    type T int
    
    func (r T) Method1() int { return a }
    func (r T) Method2() int { return b }
    
    // dummy1 and dummy2 must be initialized after a and b.
    var dummy1 = T(0).Method1()
    var dummy2 = T.Method2(0)
    
    // Use a function call to force generating code.
    var a = identity(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 30 07:14:49 UTC 2012
    - 699 bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy

            InterceptScope.readsOfPropertiesNamed("property1") | InterceptScope.readsOfPropertiesNamed("property2")
            InterceptScope.methodsNamed("method1")             | InterceptScope.methodsNamed("method2")
        }
    
        def "method and property scopes with the same name are not equal"() {
            when:
            InterceptScope methodScope = InterceptScope.methodsNamed("name")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 03 11:20:13 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Methods.java

            protected int doHash(Method method) {
                return new HashCodeBuilder()
                    .append(method.getName())
                    .append(method.getParameterTypes())
                    .toHashCode();
            }
        };
    
        /**
         * Equivalence of methods based on method name, the number, type and order of parameters, and return types.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

            MethodMetaData methodA = method('a', classMetaData)
            MethodMetaData methodB = method('b', classMetaData)
            MethodMetaData methodBOverload = method('b', classMetaData)
            MethodDoc methodAOverridden = methodDoc('a')
            MethodDoc methodC = methodDoc('c')
            MethodDoc methodD = methodDoc('d')
            MethodDoc methodE = methodDoc('e')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.4K bytes
    - Viewed (0)
  10. src/internal/types/testdata/examples/methods.go

    // This file shows some examples of methods on type-parameterized types.
    
    package p
    
    // Parameterized types may have methods.
    type T1[A any] struct{ a A }
    
    // When declaring a method for a parameterized type, the "instantiated"
    // receiver type acts as an implicit declaration of the type parameters
    // for the receiver type. In the example below, method m1 on type T1 has
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top