← board

Compiler warning diagnostics facility

Motivation

The compiler can emit {$warning}/{$message}/{$error} from source directives, but has no general facility to raise its own warnings for accepted-but-suspect situations (e.g. a case-insensitive C-import match, a narrowing, an ignored attribute). Several planned features want to accept something yet make it visible.

Scope

Acceptance

A deliberately suspect construct emits a non-fatal warning with location; the program still compiles; no regression in error handling. First consumer: feature-lazycasing-c-imports.

Log