Use of reserved word in x#/core
FrankMaraite opened this issue · 4 comments
Describe the bug
Go these error messages
...(171,146): error XS0839: Argument missing
...(171,190): error XS0839: Argument missing
...(171,192): error XS0839: Argument missing
...(171,194): error XS0839: Argument missing
...(171,196): error XS0839: Argument missing
To Reproduce
Steps to reproduce the behavior:
LOCAL Replace AS INT
Replace:GetType()
Expected behavior
Standard behavior fpr int's or whatever type the variable is.
Desktop (please complete the following information):
- OS: Win11
- X# Compiler version 2.19.0.2 (release)
Additional context
Nothing more to reproduce needed.
I think the REPLACE at the start of the line is (incorrectly) matched with the REPLACE UDC.
If you do not need UDC's then you could enable the compiler option /nostddefs
A simple rename of the variable did the job.
BTW: The code worked since vulcan times until x# 2.17. I skipped 2.18. Maybe this helps
Frank,
There was a change in the REPLACE UDC that had this side effect. I'll fix that for the next build.
And yes, of course, renaming the variable also works.
Confirmed fixed