Boo
  1. Boo
  2. BOO-327

Type inference error when calling outside module class

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      1

      Description

      See http://groups-beta.google.com/group/boolang/browse_frm/thread/104d6c105e5d033c

      Looks like something isn't visited before the generator is visited in processmethodbodies.

      It works if you specify the return type of Test.Arr as "as (double)".

      But another way to get the code to work is to add this (before the test class, not after):
      [Module]
      class Global:
      pass

      This forces the module class to be before the Test class in the AST. So that might suggest one way to fix the problem - move the module class to the beginning of the AST in the introducemoduleclass step.

        Activity

        Hide
        Rodrigo B. de Oliveira added a comment -

        the current svn version do not fail with the test case. a regression was added just in case.

        Show
        Rodrigo B. de Oliveira added a comment - the current svn version do not fail with the test case. a regression was added just in case.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: