Boo
  1. Boo
  2. BOO-937

Support CLR 3.5 Extension Methods

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      .Net Framework 3.5
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      Add support for calling .Net 3.5 Extension methods. Attached patch supports resolving extension methods.

        Issue Links

          Activity

          Hide
          Steve Wagner added a comment -

          I see this patch in trunk and as i understand #994 correctly, extension methods should working know. But i can not get them to work with the compiler from rev 3076.

          Attached a simple example project which demonstrates what i want to do.

          Show
          Steve Wagner added a comment - I see this patch in trunk and as i understand #994 correctly, extension methods should working know. But i can not get them to work with the compiler from rev 3076. Attached a simple example project which demonstrates what i want to do.
          Hide
          Avishay Lavie added a comment - - edited

          Your testcase fails because Boo only recognizes extensions when the type declaring them is imported; importing the namespace of that type isn't enough. I've created BOO-1100 to represent this.

          Show
          Avishay Lavie added a comment - - edited Your testcase fails because Boo only recognizes extensions when the type declaring them is imported; importing the namespace of that type isn't enough. I've created BOO-1100 to represent this.
          Hide
          Steve Wagner added a comment -

          Thanks Avishay! You meen i need to import the type like this: import BooTests.Ext?

          Show
          Steve Wagner added a comment - Thanks Avishay! You meen i need to import the type like this: import BooTests.Ext?
          Hide
          Avishay Lavie added a comment -

          Exactly.

          Show
          Avishay Lavie added a comment - Exactly.
          Hide
          Steve Wagner added a comment -

          This should be also depends on BOO-1103

          Show
          Steve Wagner added a comment - This should be also depends on BOO-1103

            People

            • Assignee:
              Avishay Lavie
              Reporter:
              Bill Pierce
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: