Bug 9063 – static assert should resolve property function call

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-22T19:50:00Z
Last change time
2012-12-17T03:50:19Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-11-22T19:50:11Z
These code should work. @property bool foo(){ return true; } static assert(foo); // should pass assertion @property string bar() { return "msg"; } static assert(false, bar); // should print "msg"
Comment #1 by k.hara.pg — 2012-11-22T20:07:21Z
Comment #2 by github-bugzilla — 2012-11-23T03:19:58Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1ac1c9a09511f8e3068f8cc67ed74839803f6e24 fix Issue 9063 - static assert should resolve property function call https://github.com/D-Programming-Language/dmd/commit/58112859e0903fc020fee37d5647189de8370654 Merge pull request #1309 from 9rnsr/fix9063 Issue 9063 - static assert should resolve property function call