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

Static instances of objects cause incorrect parameter counts. #14

Closed
charsleysa opened this issue Feb 15, 2014 · 3 comments
Closed

Static instances of objects cause incorrect parameter counts. #14

charsleysa opened this issue Feb 15, 2014 · 3 comments
Labels
Milestone

Comments

@charsleysa
Copy link
Member

When declaring an object as a static field within itself and initializing it, it will fail to pass all parameters, it always misses the last parameter.

The following code will reproduce the bug in Explorer:

public class MyTest 
{
    public byte Var1;
    public byte Var2;
    public byte Var3;
    public byte Var4;

    public static readonly MyTest Test = new MyTest(0, 0, 0, 0);

    public MyTest(byte var1, byte var2, byte var3, byte var4)
    {
        this.Var1 = var1;
        this.Var2 = var2;
        this.Var3 = var3;
        this.Var4 = var4;
    }
}
charsleysa added a commit to charsleysa/MOSA-Project that referenced this issue Feb 16, 2014
Closes the following issues on github:
mosa#14
mosa#15

Closes the following issues on mosa-project.org:
http://www.mosa-project.org/issues/44
@charsleysa
Copy link
Member Author

Closed by #16.

@charsleysa
Copy link
Member Author

Reopened (unfixed).

Since the previous fix was discarded, I will create another pull request with this fix.

@charsleysa charsleysa reopened this Mar 15, 2014
@charsleysa
Copy link
Member Author

Closed due to the issue not being related to this.

@tgiphil tgiphil added the Bug label May 27, 2014
@tgiphil tgiphil added this to the 1.0 - Legacy milestone May 27, 2014
charsleysa pushed a commit to charsleysa/MOSA-Project that referenced this issue Sep 5, 2016
tgiphil pushed a commit that referenced this issue Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants