We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code fails with
Error: template stuff.TestEnum(string name) is used as a type
template TestEnum(string name) { enum TestEnum : bool { yes = true } } struct TestStruct(TestEnum!"str" str) { } class TestClass { @Read TestStruct!(TestEnum!"str".yes) flags1_; mixin(GenerateFieldAccessors); }
It happens because neither .stringof nor std.traits.fullyQualifiedName retrive the exact type. So
typeof(__traits(getMember, typeof(this), "flags1_")).stringof
is translated into TestStruct!cast(TestEnum)true, but the right type representation should be: TestStruct!(cast(TestEnum!"str")true)
TestStruct!cast(TestEnum)true
TestStruct!(cast(TestEnum!"str")true)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code fails with
It happens because neither .stringof nor std.traits.fullyQualifiedName retrive the exact type. So
is translated into
TestStruct!cast(TestEnum)true
, but the right type representation should be:TestStruct!(cast(TestEnum!"str")true)
The text was updated successfully, but these errors were encountered: