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
Comment #2 by bugzilla — 2011-06-25T01:04:44Z