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

Questions about formal parameters of methods in script files #711

Open
nczsl opened this issue Apr 1, 2023 · 1 comment
Open

Questions about formal parameters of methods in script files #711

nczsl opened this issue Apr 1, 2023 · 1 comment

Comments

@nczsl
Copy link

nczsl commented Apr 1, 2023

Found an error, when defining a method in the .csx file, if the parameter of the method has the same name as a previously existing variable then this error will be raised, in my test example, the name and type of this variable are the same as this parameter, then this error will be raised, this error will make the parameter partially invalidated, in my example, when the method for loop, the parameters in it do not work, and the loop operation is not completed as expected
image
The formal parameter in the above figure is mt is the situation before I changed it, it was mtdetail, and it did not enter the loop in the method at runtime

@filipw
Copy link
Member

filipw commented Apr 3, 2023

I am not sure I understand what is the problem here.
Could you please provide a simple script with reproduction steps?

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