Skip to content

[BUG] inspect expression returning a qualified type generates invalid Cpp1 #724

Open
@ntrel

Description

@ntrel

To Reproduce

    s = inspect v -> *const char {
        is _ = "";
    };

Cpp1 has invalid return char const*{}; statements:

        if (cpp2::is(_expr, 0)) { if constexpr( requires{"";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF(("")),char const*> ) return ""; else return char const*{}; else return char const*{}; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions