Lines 844-849
Link Here
|
844 |
return null; |
844 |
return null; |
845 |
int n = functionType.parameters.length; |
845 |
int n = functionType.parameters.length; |
846 |
int k = this.exactMethodBinding.parameters.length; |
846 |
int k = this.exactMethodBinding.parameters.length; |
|
|
847 |
|
848 |
if (!this.haveReceiver && this.isMethodReference()) { |
849 |
return (this.exactMethodBinding.isStatic() ? ((n == k) ? this : null) : ((n == k+1) ? this : null)); |
850 |
} |
847 |
return (n == k || n == k + 1) ? this : null; |
851 |
return (n == k || n == k + 1) ? this : null; |
848 |
} |
852 |
} |
849 |
// descriptors parameters should be free of inference variables. |
853 |
// descriptors parameters should be free of inference variables. |