Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 29 - unknown identifier with haxe.rtti.Generic - haxe #29

Closed
issuesbot opened this issue May 28, 2013 · 2 comments
Closed

Issue 29 - unknown identifier with haxe.rtti.Generic - haxe #29

issuesbot opened this issue May 28, 2013 · 2 comments

Comments

@issuesbot
Copy link

[Google Issue #29 : https://code.google.com/p/haxe/issues/detail?id=29]
by michaelbaczynski@gmail.com, at 29/12/2009, 17:24:57
The following code fails to compile (latest svn build):

class Main

{
    public static function main():Void
    {
        new Foo<Int>();
    }
}

class Foo<T> implements haxe.rtti.Generic

{
    var _a:Array<T>;
    public function new()
    {
        _a = new Array<T>();
    }
    inline public function foo1(i:Int):T
    {
        return foo3(i);
    }
    public function foo2(x:Foo<Float>):Void
    {
    }
    inline function foo3(i:Int):T { return _a[i]; }
}

compile with haxe -swf9 -main Main

error:
Foo.hx:20: characters 11-15 : Unknown identifier : foo3
Foo.hx:18: lines 18-21 : Foo.T should be Void

compiles only if foo2 is declared before foo1 or after foo3 or
foo2(x:Foo<Float>) is changed to foo2(x:Foo<T>) or haxe.rtti.Generic is
removed.

@issuesbot
Copy link
Author

[comment from franco.p...@gmail.com, published at 03/01/2010, 22:51:30]

@issuesbot
Copy link
Author

[comment from ncanna...@gmail.com, published at 13/02/2010, 10:27:40]
Thanks for the report, this should have been fixed on SVN.
Could you check that nothing related to haxe.rtti.Generic have been broken ?

nadako pushed a commit to nadako/haxe that referenced this issue Apr 7, 2014
use Internal class to access internal identifiers
ousado pushed a commit to ousado/haxe that referenced this issue Apr 29, 2016
nadako pushed a commit that referenced this issue Apr 2, 2019
nadako pushed a commit that referenced this issue Apr 2, 2019
nadako pushed a commit that referenced this issue Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant