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

For consistent porting set default values if not set other (Int,Bool,Float at least) #330

Open
andrew-git opened this issue Oct 6, 2018 · 0 comments

Comments

@andrew-git
Copy link

as3 code for example:

package {
    public class Issue {
        private var i:int;
        private var f:Number;
        private var b:Boolean;
        private var s:String;
        public function Issue() {
            //code here...
        }
    }
}

expected result

class Issue
{
    private var i:Int = 0;
    private var f:Float = Math.NaN;
    private var b:Bool = false;
    private var s:String = null;
    public function new()
    {
        //code here...
    }
}

actual result

class Issue
{

    private var i:Int;
    private var f:Float;
    private var b:Bool;
    private var s:String;
    public function new()
    {
        //code here...
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants