dmd
dmd copied to clipboard
Improved integer truncation warnings
This PR enhances the compiler's error messages for implicit integer conversions that may truncate values. When a potentially lossy conversion is detected (e.g., long → int), the compiler now shows a clear, actionable warning.
Changes
- Added explicit truncation checks for integral type conversions
- Implemented detailed error messages showing: Source and target types Size difference in bytes Suggested fix using explicit casts