Skip to content

[Bug]: Can't define nested sub with the same name as previously defined global sub #1072

@oskostenko

Description

@oskostenko

Contact Details

No response

Compiler version

v1.19.0-beta7

What happened?

This code won't compile:

sub A
    print "A"
end sub

sub B
    sub A
        print "B.A"
    end sub

    A
end sub

A
B

The expected output is:

A
B.A

Error and Warning messages

error: Duplicate function name 'A', previously defined at 1

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions