Skip to content

[SUGGESTION] const variables with deduced types #190

@leejy12

Description

@leejy12

Cppfront compiles

cx : const = 42;

into

auto cx { 42 };

which omits the const. I think we should support const variables with deduced types such that the original Cpp2 code produce something like

auto const cx { 42 };

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions