Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 204 for unambiguous (1.11 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

            1 * attributeMatcher.matches(_, _, _) >> [variant]
            1 * variant.getArtifacts() >> resolvedArtifactSet
            0 * consumerProvidedVariantFinder._
        }
    
        def 'multiple match on variant results in ambiguous exception'() {
            given:
            def variantSet = variantSetOf([variant, otherVariant])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/util/internal/NameMatcher.java

        }
    
        public void configureProblemId(ProblemSpec spec) {
            if (!getMatches().isEmpty()) {
                spec.id("ambiguous-matches", "Ambiguous matches", GradleCoreProblemGroup.taskSelection());
            } else if (!getCandidates().isEmpty()) {
                spec.id("no-matches", "No matches", GradleCoreProblemGroup.taskSelection());
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 10:15:47 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/go/printer/testdata/generics.input

    func _() {
    	type _ []T[P]
    	var _ []T[P]
    	_ = []T[P]{}
    }
    
    // type constraint literals with elided interfaces
    func _[P ~int, Q int | string]() {}
    func _[P struct{f int}, Q *P]() {}
    
    // various potentially ambiguous type parameter lists (issue #49482)
    type _[P *T,] struct{}
    type _[P T | T] struct{}
    type _[P T | T | T | T] struct{}
    type _[P *T, _ any] struct{}
    type _[P (*T),] struct{}
    type _[P (*T), _ any] struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 06 16:18:34 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_flags.txt

    ! stderr .
    
    # For backward-compatibility with previous releases of the 'go' command,
    # arguments that appear after unrecognized flags should not be treated
    # as packages, even if they are unambiguously not arguments to flags.
    # Even though ./x looks like a package path, the real package should be
    # the implicit '.'.
    ! go test --answer=42 ./x
    stderr '^no Go files in '$PWD'$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/EvaluationFailureMessageGenerator.kt

            is ErrorReason.AmbiguousFunctions ->
                "ambiguous functions: " +
                    errorReason.functions.joinToString(",") { resolution ->
                        resolution.schemaFunction.simpleName + "(" + resolution.binding.binding.keys.joinToString { it.name.plus(": ") + it.type } + ")"
                    }
    
            is ErrorReason.AmbiguousImport -> "ambiguous import '${errorReason.fqName}'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

    import com.google.caliper.Benchmark;
    import java.util.concurrent.TimeUnit;
    
    /**
     * Simple benchmark: create, start, read. This does not currently report the most useful result
     * because it's ambiguous to what extent the stopwatch benchmark is being affected by GC.
     *
     * @author Kevin Bourrillion
     */
    public class StopwatchBenchmark {
      @Benchmark
      long stopwatch(int reps) {
        long total = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  7. src/os/exec/dot_test.go

    		// Control case: if the lookup returns ErrDot when PATH is empty, then we
    		// know that PATH implicitly includes ".". If it does not, then we don't
    		// expect to see ErrDot at all in this test (because the path will be
    		// unambiguously absolute).
    		wantErrDot := false
    		t.Setenv(pathVar, "")
    		if found, err := LookPath("execabs-test"); errors.Is(err, ErrDot) {
    			wantErrDot = true
    		} else if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDependencyGraphIntegrationTest.groovy

                    configuration = "runtimeElements"
                    compositeSubstitute()
                }
            }
        }
    
        def "reports failure to resolve dependencies when substitution is ambiguous"() {
            given:
            def buildC = multiProjectBuild("buildC", ['a1', 'b1']) {
                buildFile << """
                    allprojects {
                        apply plugin: 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:37:49 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        Long boxedLong = null;
        int anInt = 1;
        // With a boxed predicate, no overloads can be selected in phase 1
        // ambiguous without the call to .booleanValue to unbox the Boolean
        Preconditions.checkState(boxedBoolean.booleanValue(), "", 1);
        // ambiguous without the cast to Object because the boxed predicate prevents any overload from
        // being selected in phase 1
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/LocalValueTest.kt

    val schema =
        schemaFromTypes(TopLevel::class, listOf(TopLevel::class, MyClass::class), emptyList(), emptyMap(), emptyList())
    
    
    object LocalValueTest {
        @Test
        fun `local values with the same name are not ambiguous`() {
            val resolution = schema.resolve(
                """
                val m = my1()
    
                my {
                    my = m
                }
    
                my {
                    val m = my2()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top