view 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
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Don Clugston <clugdbug@yahoo.com.au>
// @date@	2007-04-23
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1177
// @desc@	[Issue 1177] $ no longer works inside CTFE functions.

module dstress.compile.i.interpret_06_A;

bool b(char[] a){
	return (a[$-1]=='b');
}

static assert(!b("abc"));
static assert(b("b"));