- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for SomeInterface (0.29 sec)
-
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/BaseJavaClassChangeIncrementalCompilationIntegrationTest.groovy
void writeToProject() { source """ interface SomeInterface { int foo(); } """ source """ class Anonymous1 { SomeInterface getAnonymous() { return new SomeInterface() { public int foo() { return 0;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 10.1K bytes - Viewed (0) -
test/typeparam/issue52228.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type SomeInterface interface { Whatever() } func X[T any]() T { var m T // for this example, this block should never run if _, ok := any(m).(SomeInterface); ok { var dst SomeInterface _, _ = dst.(T) return dst.(T) } return m } type holder struct{} func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 12 17:06:19 UTC 2022 - 476 bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtensionContainerExtensionsTest.kt
doNothing().`when`(extensions).configure(any<TypeOf<SomeInterface<Long>>>(), any<Action<SomeInterface<Long>>>()) extensions.configure<SomeInterface<Long>> { println(p) } inOrder(extensions) { verify(extensions).configure(any<TypeOf<SomeInterface<Long>>>(), any<Action<SomeInterface<Long>>>()) verifyNoMoreInteractions() } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptExecutionIntegrationTest.groovy
testFile('build.gradle') << ''' class TestComparable implements Comparable<TestComparable>, SomeInterface { int compareTo(TestComparable t) { return 0 } void main() { } } interface SomeInterface { void main() } ''' inTestDirectory().withTasks("help").run() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 21 07:18:32 UTC 2020 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/ClassInspectorTest.groovy
} } class SubClass extends SomeClass { Long other } interface SubInterface extends SomeInterface { Long getOther() void setOther(Long l) } abstract class AbstractSuperClass implements SomeInterface { Number prop } abstract class AbstractSubClass extends AbstractSuperClass implements SubInterface { Long other
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 23:46:06 UTC 2023 - 11.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertNull(ArbitraryInstances.get(EmptyEnum.class)); assertEquals(Direction.UP, ArbitraryInstances.get(Direction.class)); } public void testGet_interface() { assertNull(ArbitraryInstances.get(SomeInterface.class)); } public void testGet_runnable() { ArbitraryInstances.get(Runnable.class).run(); } public void testGet_class() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 21.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertNull(ArbitraryInstances.get(EmptyEnum.class)); assertEquals(Direction.UP, ArbitraryInstances.get(Direction.class)); } public void testGet_interface() { assertNull(ArbitraryInstances.get(SomeInterface.class)); } public void testGet_runnable() { ArbitraryInstances.get(Runnable.class).run(); } public void testGet_class() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 22.1K bytes - Viewed (0)