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
e.g. had this mistake when converting the tests:
namespace Intellenum.Tests.Types; [Intellenum(typeof(int))] [Instance("Points", "Points")] [Instance("Percentage", "Percentage")] public partial class ScoreType { }
This just resulted in a meaningless compilation error: Intellenum.Tests.Types_ScoreType.g.cs(135,10): error CS0150: A constant value is expected
Intellenum.Tests.Types_ScoreType.g.cs(135,10): error CS0150: A constant value is expected
The text was updated successfully, but these errors were encountered:
Same for declaring a float but setting ints
[Intellenum(typeof(record.@struct.@float.@decimal))] [Instance("Item1", 1)] [Instance("Item2", 2)] public partial class @event2 { }
Sorry, something went wrong.
... also, Instance attributes/methods should check the type, e.g.
[Intellenum(typeof(record.@struct.@float.@decimal))] [Instance("Item1", 1f)] [Instance("Item2", 2f)] public partial class @event2 { }
@decimal (it's convoluted as it's from the 'escaped types' tests) is not a decimal, so should be checked in the Instance attributes/method
No branches or pull requests
Describe the feature
e.g. had this mistake when converting the tests:
This just resulted in a meaningless compilation error:
Intellenum.Tests.Types_ScoreType.g.cs(135,10): error CS0150: A constant value is expected
The text was updated successfully, but these errors were encountered: