Skip to content

Instantly share code, notes, and snippets.

@aka-STInG
Created January 27, 2017 10:10
Show Gist options
  • Save aka-STInG/4771ede5d24756d05104221a3b774729 to your computer and use it in GitHub Desktop.
Save aka-STInG/4771ede5d24756d05104221a3b774729 to your computer and use it in GitHub Desktop.
class DerivedClass91<T> extends BaseClass9<T> {
// generated private class constructor
function new() {
super(); // implicit `base`
}
public static function create_1<TThis:DerivedClass91<T>, T>(clsTThis:Class<TThis>, clsT:Class<T>, t:T):DerivedClass91<T> {
var __this = cast(BaseClass9.create_1(clsTThis, clsT, t), DerivedClass91<T>);
return __this;
}
}
@RealyUniqueName
Copy link

class DerivedClass91<T> extends BaseClass9<T> {


	// generated private class constructor
	function new() {
		super(); // implicit `base` 
	}

	public static function create_1<TThis:DerivedClass91<T>, T>(clsTThis:Class<TThis>, clsT:Class<T>, t:T):DerivedClass91<T> {
// 		var __this = cast(BaseClass9.create_1(clsTThis, clsT, t), DerivedClass91<Dynamic>);
// 		return __this;
        var _this:DerivedClass91<T> = cast BaseClass9.create_1(clsTThis, clsT, t);
        return _this;
	}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment