Bug 4230 – version(unittest)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-05-24T14:38:00Z
Last change time
2015-06-09T05:15:07Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2010-05-24T14:38:08Z
is not mentioned in the spec but probably should be
Comment #1 by bearophile_hugs — 2010-05-24T15:03:15Z
unittest is written in the "Predefined Versions" list: http://www.digitalmars.com/d/2.0/version.html So this bug report can be closed.
Comment #2 by ellery-newcomer — 2010-05-24T15:06:38Z
(In reply to comment #1) > unittest is written in the "Predefined Versions" list: > http://www.digitalmars.com/d/2.0/version.html > > So this bug report can be closed. Or it could be put in the grammar and then the bug report can be closed
Comment #3 by leandro.lucarella — 2010-05-30T17:19:58Z
BTW, unittest is mentioned in the documentation for D1 but it doesn't work: $ cat u.d version (unittest) {} $ dmd -c u.d u.d(1): identifier or integer expected, not unittest I don't know if the documentation for D1 is wrong or the compiler is buggy. http://www.digitalmars.com/d/1.0/unittest.html
Comment #4 by leandro.lucarella — 2010-05-30T17:24:15Z
And Ellery Newcomer is right, for both D1 and D2 the specs says: VersionCondition: version ( Integer ) version ( Identifier ) But "unittest" is not either an Integer or an Identifier (is a Keyword). http://www.digitalmars.com/d/1.0/version.html http://www.digitalmars.com/d/1.0/lex.html#keyword http://www.digitalmars.com/d/2.0/version.html http://www.digitalmars.com/d/2.0/lex.html#keyword
Comment #5 by bugzilla — 2010-06-07T14:42:30Z
This is for D2 only. changeset 1580