View source code
Display the source code in dmd/expressionsem.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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.expressionsem.checkOverriddenDtor

Checks whether f is a generated DtorDeclaration that hides a user-defined one which passes check while f doesn't (e.g. when the user defined dtor is pure but the generated dtor is not). In that case the method will identify and print all members causing the attribute missmatch.

void checkOverriddenDtor(
  FuncDeclaration f,
  dmd.dscope.Scope* sc,
  ref const(Loc) loc,
  scope bool function(DtorDeclaration) check,
  const(string) checkName
);

Parameters

NameDescription
f potential DtorDeclaration
sc scope
loc location
check current check (e.g. whether it's pure)
checkName the kind of check (e.g. "pure")

Authors

Walter Bright

License

Boost License 1.0