Method calls vs lambda calls
    Stefan Schulz 
    schulz at the-loom.de
       
    Mon Dec 14 12:36:12 PST 2009
    
    
  
Am 14.12.2009 21:07, schrieb Alex Blewitt:
> public class Example {
>     public int fortyTwo() {
>       return 6*9;
>     }
>     public void run() {
>       System.out.println(fortyTwo())
>       #int() fortyTwo = #int() { return 42; }
>       System.out.println(fortyTwo())
>     }
> }
>
> What's the result on the output here?
I'd suspect a compile error due to defining two "methods" having the 
same signature in the same scope.
    
    
More information about the lambda-dev
mailing list