View source code
Display the source code in dmd/escape.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.escape.printScopeReason

An error occured due to v either being or not being scope. If applicable, print why the v was inferred that way.

void printScopeReason(E)(
  E printFunc,
  VarDeclaration v,
  int recursionLimit,
  bool positive
);

Parameters

NameDescription
printFunc error/deprecation print function to use
v parameter that was not inferred
recursionLimit recursion limit for printing the reason
positive true for telling why v is scope, false for telling why v is not scope

Authors

Walter Bright

License

Boost License 1.0