← Back to index
|
Original Bugzilla link
Bug 3799 – isStaticFunction trait evaluates to true for non-static nested functions
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2010-02-13T13:15:00Z
Last change time
2015-06-09T01:27:39Z
Keywords
patch
Assigned to
nobody
Creator
samukha
Comments
Comment #0
by samukha — 2010-02-13T13:15:11Z
void main() { void bar() { } static assert(!__traits(isStaticFunction, bar)); // fails }
Comment #1
by yebblies — 2011-06-15T22:36:49Z
https://github.com/D-Programming-Language/dmd/pull/130
Comment #2
by bugzilla — 2011-06-25T01:04:44Z
https://github.com/D-Programming-Language/dmd/commit/d947058b7607812c4e0bd70ab1f3b6ba1cd1dd32