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 102: inline getter error
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2011


 
Reported by lucadelt...@googlemail.com, Mar 14, 2011
What steps will reproduce the problem?
class Main {
   static var x(get_x,never):Int;
   inline static function get_x() return 10

   static function main() {
       trace(x);
   }
}

What is the expected output? What do you see instead?
should compile and trace 10, preferably with the getter inlined away completely.

instead, get errors about redefinition of get_x as a function when previously declared as data member and related errors

What version of the product are you using? On what operating system?
2,07,0
Mar 14, 2011
#1 lucadelt...@googlemail.com
infact this happens even without the getter being inlined.
Aug 10, 2011
Project Member #2 gameh...@gmail.com
It got confused thinking it was a "dynamic" get_x function.  Should be fixed.
Status: Fixed

Powered by Google Project Hosting