August 02, 2003 assert in compiler (line 1577 parse.c) | ||||
---|---|---|---|---|
| ||||
testtemp.d(7): basic type expected, not 1 Assertion failure: 't' on line 1577 in file 'parse.c' enum FOO { ONE, TWO } template MissingBinding( FOO T : FOO.ONE ) { alias 1 the_value; } alias 1 the_value; causes -- testtemp.d(2): basic type expected, not 1 why can't I alias a value ??? |
August 03, 2003 Re: assert in compiler (line 1577 parse.c) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wynn | Alias is for symbols, not values. Use: const int the_value = 1; "Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bghfv6$114o$1@digitaldaemon.com... > testtemp.d(7): basic type expected, not 1 > Assertion failure: 't' on line 1577 in file 'parse.c' > > enum FOO { > ONE, TWO > } > > template MissingBinding( FOO T : FOO.ONE ) { > alias 1 the_value; > } > > > alias 1 the_value; > > causes -- testtemp.d(2): basic type expected, not 1 > why can't I alias a value ??? > > |
Copyright © 1999-2021 by the D Language Foundation