Skip to content

Manual examples on "Lookup rules for template parameters" do not compile as expected. #19489

Open
@rockcavera

Description

@rockcavera

The two examples in Lookup rules for template parameters do not compile as they should according to the comments in the code itself , where the first example should produce levA levA and the second levA levB. I tested it on Nim devel, 1.6.2 and 1.0.0, and both examples return levA levB.

I don't know if the manual is wrong or the compiler is not producing what it should produce.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions