Entity functions can be overloaded but compilation fails if the passed argument types are not exactly equal to the formal argument types.

Test case:

entity Base {}
entity Extend : Base { }

entity Test {

  function h(e : Base) {
    var x : Extend;
    h(x);
  }
 
 function h() {}
}
Submitted by Nathan Bruning on 22 April 2010 at 14:11

On 22 April 2010 at 17:16 Nathan Bruning commented:

Fixed by revision 3856.

Log in to post comments