-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
X# preprocessor incorrectly replaces UDC (dialect XBase++) #1250
Comments
This example depends on an Enum class. Can you include the code for that class too? |
enum.zip |
Which incoding are these source files in? |
DOS 866 |
The problem in this case seems to be in the handling of when matching the token we encounter the '(' token and we do not match that with the '(' inside the optional description part. I'll see if I can fix that. |
In the base class Enum I see a problem that you have instance variables with the same name as methods. |
I agree about the same names for variables and class methods. But not about readonly class variables. Example in C#:
|
We have added support for readonly in the 2.16 compiler |
I'm not entirely sure of the correct behavior after the fix (compiler currently gives an error on the original code "error XS0644: 'Quality' cannot derive from special class 'System.Enum'"), so I will let @DenGhostYY confirm this one. |
Chris,
|
OK, it's confirmed fixed then! |
Describe the bug
X# preprocessor incorrectly replaces UDC (dialect XBase++)
Example 1. To Reproduce .prg
Expected behavior (xBase++ .ppo)
Output
Actual behavior (X# .ppo)
If I write an enumeration in this way,
then the X# preprocessor does not recognize it.
Additional context
X# Compiler version 2.14.0.4 (release)
-dialect:xBase++ -xpp1 -lb -memvar -vo1 -vo3 -vo5 -vo10 -vo15 -vo16
The text was updated successfully, but these errors were encountered: