Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AnotherMethod (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java

                super(action);
            }
    
            @TaskAction
            public void aMethod() {
                action.run();
            }
    
            @TaskAction
            public void anotherMethod() {
                action.run();
            }
        }
    
        public static class TaskWithAction extends DefaultTask {
            @TaskAction
            public void doStuff() {}
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 11:41:48 UTC 2022
    - 15.8K bytes
    - Viewed (0)
  2. src/internal/reflectlite/all_test.go

    	var pi *int
    	if pv := ValueOf(pi); pv.Elem().IsValid() {
    		t.Error("ValueOf((*int)(nil)).Elem().IsValid()")
    	}
    }
    
    type Point struct {
    	x, y int
    }
    
    // This will be index 0.
    func (p Point) AnotherMethod(scale int) int {
    	return -1
    }
    
    // This will be index 1.
    func (p Point) Dist(scale int) int {
    	//println("Point.Dist", p.x, p.y, scale)
    	return p.x*p.x*scale + p.y*p.y*scale
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top