-
Notifications
You must be signed in to change notification settings - Fork 56
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
VAR_INPUT and VAR_IN_OUT assignment error #604
Labels
bug
Something isn't working
Comments
99NIMI
added a commit
to 99NIMI/rusty
that referenced
this issue
Oct 18, 2022
99NIMI
added a commit
that referenced
this issue
Oct 19, 2022
…gnment-error #604 recursive function calls
mhasel
added a commit
that referenced
this issue
Nov 3, 2022
…osure for is_call. regression from #604. added test to show correct behaviour
ghaith
added a commit
that referenced
this issue
Nov 14, 2022
…h 81 (#568) * added tests to confirm string truncation bug * added tests to confirm string truncation bug * changed generic function annotation to fix generic string functions with length>80. * fixed an issue that was introduced after the previous chang,e concerning generic type resolution and buils * improved string test names * fixed issues with variadic strings, added tests * Add effective type info to string data types in indexer. Add test for string parameters that are shorter than they were declared as * Fixes implementation error in a test. Renames another test that still had the name 'placeholder'. * Fixes implementation error in a test. Renames another test that still had the name 'placeholder'. Removes overly convoluted test. updates generic resolver tests. changes string type annotation for literals. adds requested comments to previous changes. * adds missing compile_module parameters (optimization + debug) to fix tests * changes visitor context for call statements to be called once in a closure for is_call. regression from #604. added test to show correct behaviour * adds fix and test from #635 the changes from 554 also fix the issue from 635 Co-authored-by: Ghaith Hachem <ghaith.hachem@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error for variables assignment from VAR_INPUT and VAR_IN_OUT in parameter list
this occurs only if the variables declaration are in the same program
if the vars are in a external function or program declared, there is no error
example:
Could not resolve reference to input1
Could not resolve reference to inout1
Test: https://github.com/PLC-lang/rusty/blob/master/src/codegen/tests/parameters_tests.rs#L7
this test is not the perfect example, the input & in_out vars should be in the same program for 100% reproducibility
The text was updated successfully, but these errors were encountered: