Skip to content

Code flow doesn't properly handle conditional compile #127

@TwitchBronBron

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([]);
});

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