Wiki

Ticket #168 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Empty character literal error when using double quotes

Reported by: webnov8 Owned by:
Priority: major Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

When using the 'c' character prefix for character literals both single and double quotes should be allowed

print c"\'" # this works
print c"'"
# error: Empty character literal
# error: Unexpected symbol "<internal>"
# error: Too many characters in character literal
# error: Preprocessor directives must appear as the first non-whitespace character on a line
# error: Expected catch or finally

Change History

Changed 15 years ago by Chuck

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:2134

It was a bug in code gen.

Note: See TracTickets for help on using tickets.