View unanswered posts | View active topics



Reply to topic  [ 3 posts ] 
ALT+SHIFT+1 bug 
Author Message
Member

Joined: Fri Oct 08, 2010 3:55 pm
Posts: 2
Reply with quote
When pressing ALT+SHIFT+1 on new variable deceleration, deceleration is created "within" Object's Array instead of "after".

Look at newObject in the code below.

INITIAL STATE
Code:
package {
   public class Class1 {
      public var obj1:Object;
      private var objects:Array = new Array (
         {part:"123", info:"123"},
         {part:"123", info:"123"}
      );
      public function Class1(): void {
         var newObject
      }
   }
}


AFTER PRESSING "ALT+SHIFT+1"

Code:
package {
   public class Class1 {
      public var obj1:Object;
      private var objects:Array = new Array (
      private var newObject;
         {part:"123", info:"123"},
         {part:"123", info:"123"}
      );
      public function Class1(): void {
         newObject
      }
   }
}


PROPER OUTCOME SHOULD BE

Code:
package {
   public class Class1 {
      public var obj1:Object;
      private var objects:Array = new Array (
         {part:"123", info:"123"},
         {part:"123", info:"123"}
      );
      private var newObject;
      public function Class1(): void {
         newObject
      }
   }
}


Fri Oct 08, 2010 4:16 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
It's a known issue due to a parser limitation.


Fri Oct 08, 2010 6:45 pm
Profile WWW
Member

Joined: Fri Oct 08, 2010 3:55 pm
Posts: 2
Reply with quote
Good to know, thanks.


Fri Oct 08, 2010 8:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.