-
Notifications
You must be signed in to change notification settings - Fork 525
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
C++/CLI generator does not create implementations for static fields (variables) #362
Comments
I was trying to recreate this issue.. But, |
No idea what's happened here. Just add such a member to Basic.h and regenerate to see if there's any problem. |
@ddobrev Here is what I tried to recreate the issue : |
static int staticFooTest; is private so it shouldn't be generated. The two outside the class should be generated in another class, not in Foo. |
@ddobrev My main concern is that the global variables are nowhere generated. I added one static and one non-static global variable in Basic.h and none of them was generated in either Basic.cs or in the Basic.h/cpp files! |
I am afraid I'm a little busy. Please solve the other issue first and then we'll get back to this one. |
Static fields (variables) are represented as properties but the C++/CLI generator only creates definitions in headers for those. To reproduce, move:
static int null;
from CSharpTemp.h to Basic.h.
The text was updated successfully, but these errors were encountered: