Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for missingMethod (0.11 sec)

  1. platforms/core-configuration/model-groovy/src/test/groovy/org/gradle/model/dsl/internal/NonTransformedModelDslBackingTest.groovy

                }
            }
            registry.realize("bah", ModelType.UNTYPED)
    
            then:
            e = thrown(ModelRuleExecutionException)
            def missingMethod = e.cause
            assert missingMethod instanceof MissingMethodException
            missingMethod.method == 'unknown'
        }
    
        static class TestObject {
            String prop
    
            def defineSomeThing(Closure cl) {
                cl.delegate = this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    	// Mitigations for interface comparisons and generics.
    	// TODO(https://github.com/golang/go/issues/50658): Support more precise conclusion.
    	if free.Has(V) || free.Has(T) {
    		return nil
    	}
    	if f, wrongType := types.MissingMethod(V, T, false); wrongType {
    		return f
    	}
    	return nil
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    	nodeFilter := []ast.Node{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top