Boo
  1. Boo
  2. BOO-383

The parser should check when the keyword 'super' is used in an invalid context.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.6
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      This gets compiled and crashes the program with a fatal stack overflow error.
      override def ToString():
      return super + " [$

      {lyrics}

      ]" # () are missing

      It generates:
      public override string ToString()
      {
      return (((string) this) + new StringBuilder().Append(" [").Append(this.lyrics).Append("]").ToString());
      }

      This should be caught at compile time. The error should say, "Use of keyword 'super' is not valid in this context," like C# does for 'base'.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sorin Ionescu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: