Hazelight / vscode-unreal-angelscript

Visual Studio Code Language Server and Debug Adapter for use with UnrealEngine-Angelscript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashing when hot reloading bad switch case

lossientos opened this issue · comments

this code crashes on hot reload

enum EFoo
{
    Bar,
    Baz,
};
float FooFunc(EFoo Cond)
{
    switch (Cond)
    {
        case Bar:
            return 0.f;
        case Baz:
            return 0.f;
    }
}

this code does not (unclear on why it doesn't happen with a return post switch case)

enum EFoo
{
    Bar,
    Baz,
};
float FooFunc(EFoo Cond)
{
    switch (Cond)
    {
        case Bar:
            return 0.f;
        case Baz:
            return 0.f;
    }
    return 0.f
}