[Issue 1273] final-const-invariant.html html errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 18 05:42:14 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1273
------- Comment #6 from deewiant at gmail.com 2007-06-18 07:42 -------
It works at global scope, or if foo() is made static:
void main() {
static int foo(int f) { return f * 3; }
invariant int z = foo(2) + 1;
}
int foo(int f) { return f * 3; }
invariant int z = foo(2) + 1;
--
More information about the Digitalmars-d-bugs
mailing list