Skip to content

[Bug]: Nested and parent sub params and vars mixed up #1073

@oskostenko

Description

@oskostenko

Contact Details

No response

Compiler version

v1.19.0-beta7

What happened?

I know that this is not yet supported, so it is more a feature than a bug.

sub Outer(outerParam as integer)
    dim outerVar = 1

    sub Inner(innerParam as integer)
        dim innerVar = 10
        print outerParam; " "; outerVar
        print innerParam; " "; innerVar
    end sub

    Inner 20
end sub

Outer 2

The actual result is:

20 10
20 10

The expected result is:

2 1
20 10

Error and Warning messages

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions