FuncDeclaration.checkClosure

Check that the function contains any closure. If it's @nogc, report suitable errors. This is mostly consistent with FuncDeclaration::needsClosure().

class FuncDeclaration
extern (D) final
bool
checkClosure
()

Return Value

Type: bool

true if any errors occur.

Suggestion Box / Bug Report