Boo
  1. Boo
  2. BOO-410

Bad error message with structs that have partially implement interfaces.

    Details

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

      Description

      The compiler needs to inform the user that they NEED to implement all of the contracts defined in an interface when they implement that interface within a struct.

      The problem is the compiler tries to turn a struct abstract, which is invalid; this is because classes are normally marked abstract if they do not implement all of an interfaces contracts.

      The following code should exhibits this bad behavior.

      import System
      struct test(IComparable):
      pass

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Arron Washington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: