Mercurial > projects > dstress
comparison compile/i/interpret_06_A.d @ 1530:1665114e9a64
[Issue 1177] $ no longer works inside CTFE functions.
Don Clugston <clugdbug@yahoo.com.au>
2007-04-23
http://d.puremagic.com/issues/show_bug.cgi?id=1177
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:33:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1529:37c4fce34442 | 1530:1665114e9a64 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Don Clugston <clugdbug@yahoo.com.au> | |
6 // @date@ 2007-04-23 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1177 | |
8 // @desc@ [Issue 1177] $ no longer works inside CTFE functions. | |
9 | |
10 module dstress.compile.i.interpret_06_A; | |
11 | |
12 bool b(char[] a){ | |
13 return (a[$-1]=='b'); | |
14 } | |
15 | |
16 static assert(!b("abc")); | |
17 static assert(b("b")); |