Skip to content

Double Evaluation of Attributes in Struct Field #184

Description

@AkiSakurai

The attribute associated with the struct field is being evaluated twice.

import std.io;

fn func(auto t) {
    std::print("test");
    return "comment";
};

struct Struct {
    u32 field [[comment(func(1))]];
};

Struct var @ 0;
I: test
I: test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions