View source code
Display the source code in dmd/dfa/fast/report.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aGitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinglocal clone.
Function dmd.dfa.fast.report.DFAReporter.onDereference
Reports an error if a variable is dereferenced while known to be null.
This is triggered by expressions like *ptr or ptr when the DFA
determines ptr has a Nullable state.
Parameters
| Name | Description |
|---|---|
| on | The consequence containing the variable state (must be Nullable). |
| loc | The source location of the dereference. |
Authors
License
Copyright © 1999-2026 by the D Language Foundation | Page generated by ddox.