- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,579 for Method1 (0.12 sec)
-
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) -
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) -
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) -
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) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy
def b1 = builder.block(null, "block1") b1.methodInvocation("comment", "method1") b1.methodInvocation("comment", "method2") b1.methodInvocation(null, "method3") b1.methodInvocation(null, "method4") def b2 = builder.block("another block", "block2") b2.methodInvocation(null, "method1") b2.propertyAssignment(null, "foo", "bar", true)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 18 14:16:33 UTC 2023 - 16.1K bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy
def b1 = builder.block(null, "block1") b1.methodInvocation("comment", "method1") b1.methodInvocation("comment", "method2") b1.methodInvocation(null, "method3") b1.methodInvocation(null, "method4") def b2 = builder.block("another block", "block2") b2.methodInvocation(null, "method1") b2.propertyAssignment(null, "foo", "bar", true)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 18 14:16:33 UTC 2023 - 16.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/CallInterceptingMetaClassTest.groovy
def 'successive pickMethod invocations in the entry point scope return the intercepted method'() { when: def method1 = null def method2 = null withEntryPoint(INVOKE_METHOD, "test") { method1 = instance.metaClass.pickMethod("test", new Class[]{}) method2 = instance.metaClass.pickMethod("test", new Class[]{InterceptorTestReceiver}) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 24 13:33:59 UTC 2023 - 15K bytes - Viewed (0) -
src/runtime/defer_test.go
type foo struct { } //go:noinline func (f *foo) method1() { } //go:noinline func (f *foo) method2() { } func g2() { var a foo ap := &a // The loop forces this defer to be heap-allocated and the remaining two // to be stack-allocated. for i := 0; i < 1; i++ { defer ap.method1() } defer ap.method2() defer ap.method1() ff1(ap, 1, 2, 3, 4, 5, 6, 7, 8, 9)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:57:24 UTC 2023 - 11.4K bytes - Viewed (0) -
src/text/template/exec_test.go
// Method calls. {".Method0", "-{{.Method0}}-", "-M0-", tVal, true}, {".Method1(1234)", "-{{.Method1 1234}}-", "-1234-", tVal, true}, {".Method1(.I)", "-{{.Method1 .I}}-", "-17-", tVal, true}, {".Method2(3, .X)", "-{{.Method2 3 .X}}-", "-Method2: 3 x-", tVal, true}, {".Method2(.U16, `str`)", "-{{.Method2 .U16 `str`}}-", "-Method2: 16 str-", tVal, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/html/template/exec_test.go
// Method calls. {".Method0", "-{{.Method0}}-", "-M0-", tVal, true}, {".Method1(1234)", "-{{.Method1 1234}}-", "-1234-", tVal, true}, {".Method1(.I)", "-{{.Method1 .I}}-", "-17-", tVal, true}, {".Method2(3, .X)", "-{{.Method2 3 .X}}-", "-Method2: 3 x-", tVal, true}, {".Method2(.U16, `str`)", "-{{.Method2 .U16 `str`}}-", "-Method2: 16 str-", tVal, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0)