Bug: problems with forward methods

andrei.eremeev andrei.eremeev at oracle.com
Thu Mar 19 15:49:00 UTC 2015


Hi REPL team,

The code is not compiled if the name of a forward method equals to the 
method name in which the forward method is called.

-> void f() { f(10); }
|  Error:
|  method f in class  cannot be applied to given types;
|    required: no arguments
|    found: int
|    reason: actual and formal argument lists differ in length
|  void f() { f(10); }
|             ^


Andrei Eremeev


More information about the kulla-dev mailing list