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 245: Nested Type GenericStack fails CPP compile
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by TByrne....@gmail.com, Jun 12, 2013
I'm sure you're already aware of this but I couldn't find a ticket and would like to keep track of progress.

When using a generic as a type parameter for a child member, CPP compilation fails (haxe compilation passes with no errors).

A class like this:

package ;
import haxe.ds.GenericStack;

class NestedGeneric<T> {
	private var list:GenericStack<T>;
}


Running:
OSX 10.8
hxcpp 3.0.2
haxe 3.0.0


Aug 22, 2013
Project Member #1 gameh...@gmail.com
Hi,
You can fix this with:

@:generic class NestedGeneric<T>  ...

I think this should either be automatic by the compiler, or a compiler error.  I will talk the compiler team about this one.

Powered by Google Project Hosting