Ticket #218 (closed defect: fixed)
Doc comments work in two variants, not in third.
Reported by: | nevdelap | Owned by: | Chuck |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
class Program def main pass def m1 """ This doc comment is fine. """ pass def m2 """ This is doc comment is also fine. """ pass def m3 """ This one causes it indigestion. """ pass
test.cobra(17): error: Expecting EOL, but got """ (DOUBLE_QUOTE) instead.
If you don't want the third type then consider this bug a report on the error message, that it could say what the problem is with this format of doc comment.
And that it calls a triple quote a double quote (or maybe it's just referring to the first of the three double quotes?) is a bit odd too.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.