← Back to index
|
Original Bugzilla link
Bug 18669 – isNestedFunction does not check if parameter is a function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-27T14:35:10Z
Last change time
2018-03-28T03:09:06Z
Assigned to
No Owner
Creator
Jack Stouffer
Comments
Comment #0
by jack — 2018-03-27T14:35:10Z
import std.traits; class Outer { class Inner { } } void main() { void fun(int i); int i; struct SS { int bar() { return i; } } static assert(isNestedFunction!(fun)); static assert(isNestedFunction!(SS)); static assert(isNestedFunction!(Outer.Inner)); }
Comment #1
by github-bugzilla — 2018-03-28T03:09:05Z
Commits pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/09cc0bac145422636e88616ce88f8bab3f0adefc
Fix Issue 18669 - isNestedFunction does not check if parameter is a function
https://github.com/dlang/phobos/commit/a6afdef9320f9eb5ccd868928742c274d149a9f1
Merge pull request #6355 from JackStouffer/issue18669 Fix Issue 18669 - isNestedFunction does not check if parameter is a f… merged-on-behalf-of: Jack Stouffer <
[email protected]
>