My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 61: Default args in interface
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  gameh...@gmail.com
Closed:  Jan 2011


 
Project Member Reported by gameh...@gmail.com, Aug 31, 2010
Interfaces default values don't work correctly.

Jan 23, 2011
Project Member #1 gameh...@gmail.com
interface Intf { function Print(inVal:String = "Interface") : Void ; }
class Impl implements Intf
{
   public function new() {}
	public function Print(inVal:String = "Impl") : Void {
	   trace(inVal);
	}
}

class Test
{
  public static function main() {
     var impl = new Impl();
	  impl.Print();
	  var intf:Intf = impl;
	  intf.Print();
  }
}
Jan 24, 2011
Project Member #2 gameh...@gmail.com
This is the desired behaviour.
Status: WontFix

Powered by Google Project Hosting