Feedback
Improve diagnostic for bare type or module names used as values
- Status
- Fixed
- Fixed in
- v26.6.6
- Source discussion
- https://forum.objo.dev/d/440-class-endofline-when-no-platform-specified
- Last updated
- 2026-06-25
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Using a bare type or module name where a runtime value is expected can produce confusing output, such as EndOfLine stringifying as <class EndOfLine> when the intended code was EndOfLine.Native. The compiler should report a generic, helpful diagnostic for bare type/module names used as values and suggest an appropriate shared member when one is available.