Boo
  1. Boo
  2. BOO-369

compiler internal error when a field has an initialiser taking a closure as argument

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Gentoo Linux/Mono
    • Number of attachments :
      0

      Description

      Following code produces an internal compiler error :

      callable handler(a as int) as int

      class Action:
      cb as handler
      def constructor(callback as handler):
      cb = callback

      class A:
      a as Action

      ac = Action() def(para):
      newa = A(32)

      def constructor(p):
      a = ac

      But if you replace

      ac = Action() def(para):

      by

      ac as Action = Action() def(para):

      or if you remove the line

      newa = A(32)

      or if you remove the line

      a = ac

      (replacing them by print "hello" for example) then it compiles (though I'm not sure the generated code is correct)

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: