Bug: Comments in example #189

Open
opened 2024-05-18 13:26:17 +01:00 by deavmi · 1 comment
Owner

Issue

The following code has comments and it bugs out:

module simple_do_while;

int function(int i)
{
    // 4-1 -> 3
    // test = 0+3

    // 3-1 -> 2
    // test = 3+2

    // 2-1 -> 1
    // test = 3+2+1

    // 1> 1 -> false

    // return 3+2+1 -> 6

    int test = 0;
    do
    {
        i = i - 1;
        test = test + i;
    }
    while(i > 1);

    return test;
}

int main()
{
	return function(4);
}
# Issue The following code has comments and it bugs out: ```d module simple_do_while; int function(int i) { // 4-1 -> 3 // test = 0+3 // 3-1 -> 2 // test = 3+2 // 2-1 -> 1 // test = 3+2+1 // 1> 1 -> false // return 3+2+1 -> 6 int test = 0; do { i = i - 1; test = test + i; } while(i > 1); return test; } int main() { return function(4); } ```
deavmi self-assigned this 2024-05-18 13:26:17 +01:00
Author
Owner

Must test on the issue referring to comment support.

Must test on the issue referring to comment support.
deavmi added a new dependency 2024-05-19 13:29:51 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tlang/tlang#189
No description provided.