Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported local variable loose they types and attributes #152

Open
Naheulf opened this issue Feb 7, 2025 · 0 comments
Open

Exported local variable loose they types and attributes #152

Naheulf opened this issue Feb 7, 2025 · 0 comments

Comments

@Naheulf
Copy link
Contributor

Naheulf commented Feb 7, 2025

Description of the Issue

Exporting a typed local value show it as a native type (without attribute).

Steps to Reproduce the Issue

  1. Create a new empty file
  2. Paste this code:
import type.size;

struct Test {
    type::Size16 size;
    type::Size<u32> life = 42 [[export]];
};

Test exemple @ 0;
  1. Examine the output

Expected Behavior

Exported value should keep it's type::Size<u32> type and the linked format attribute (from the size type)

Actual Behavior

The value is shown with underlying native type (u32) and the formatter attribute is lost.

Debug Information

ImHex portable on Windows10 x64

ImHex Hex Editor v1.36.2 by WerWolv
Powered by Dear ImGui v1.91.6
v1.36.X@77c1ee3
Compiled on Dec 28 2024 at 15:14:42

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant