Skip to content

Code flow doesn't properly handle conditional compile #127

Description

@TwitchBronBron

image

it.only('tracks code flow between conditional compile blocks', () => {
    program.setFile('source/main.brs', `
        sub main()
            #if true
                text1 = "a"
            #else
                text1 = "b"
            #end if
            print text1
        end sub
    `);
    program.validate();

    expect(program.getDiagnostics()).to.eql([]);
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions