8000 Return statement is added before trailing white space in @timer trigger · Issue #9 · JakubLinhart/SphereSharp · GitHub
[go: up one dir, main page]

Skip to content

Return statement is added before trailing white space in @timer trigger #9

Open

Description

@JakubLinhart

Currently transpiler adds default return value after comments, which seems odd:

on=@timer
call1

// here is some a comment
// here is another comment
return 0

preferred:

on=@timer
call1
return 0

// here is some a comment
// here is another comment

Tests:

        [TestMethod]
        public void Adds_return_statement_to_the_end_before_trailing_WS()
        {
            TranspileTriggerCheck(
@"on=@timer
call1

// here is some a comment
// here is another comment",
@"on=@timer
call1
return 0

// here is some a comment
// here is another comment
");
        }

Activity

  1. added
    bug
    and removed on Jul 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0