Issue 89: subclass override a method returning a parameterized type
Status:  Fixed
Owner: ----
Closed:  Jan 2011
Reported by Andy.onthewings, Jan 17, 2011
class Main 
{

	static public function main() 
	{
		new AB(new B()).get().b();
		
		/* workaround:
		var b:B = new AB(new B()).get();
		b.b();*/
	}
	
}

class A<T> {
	var t:T;
	
	public function new(t) { 
		this.t = t;
	}
	
	public function get():T {
		return t;
	}
}

class B {
	public function new() { }
	public function b():Void { }
}

class AB extends A<B> {
	public function new(b:B) { super(b); }
	
	override public function get():B {
		return t;
	}
}

----------------------------------------------------------------------------------
The above code can be put inside a single Main.hx file. It cannot be compiled using VS2010. 
Tested with haxe r3627, hxcpp r272.

The error is:

./src/Main.cpp(39) : error C2039: 'b' : is not a member of 'hx::Object'
        D:\repo\hxcpp\include\hx/Object.h(53) : see declaration of 'hx::Object'
Called from ? line 1
Called from BuildTool.hx line 1077
Called from BuildTool.hx line 509
Called from BuildTool.hx line 538
Called from BuildTool.hx line 651
Called from BuildTool.hx line 723
Uncaught exception - Error in building thread
Error : Build failed
Jan 18, 2011
Project Member #1 gameh...@gmail.com
(No comment was entered for this change.)
Status: Started
Jan 18, 2011
Project Member #2 gameh...@gmail.com
Fixed on svn
Status: Fixed