Skip to content

Commit 11366b2

Browse files
Fix: Cast Enum to integer when assigning to non-convertible types
- Update TypeConversionAnalyzer to only use EnumCastThenConversion if the target type is not an Enum and does not have a defined Conversions.To method. - Add tests covering the reported issue (implicitly casting Enum to custom struct expecting int) and ensuring Enum-to-Boolean logic remains intact without extra (long) casts. Co-authored-by: GrahamTheCoder <2490482+GrahamTheCoder@users.noreply.github.com>
1 parent 2f9d582 commit 11366b2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

plan.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)