Boo

macros should be able to contribute imports to the current module

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8.2
  • Fix Version/s: 0.9
  • Component/s: Compiler
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

macro defaultImports:
     yield [| import System |]
     yield [| import System.Collections.Generic |]

defaultImports
Console.WriteLine(List[of int]().GetType().Namespace) # System.Collections.Generic

Activity

Hide
Rodrigo B. de Oliveira added a comment -

Fixed in revision 3157.

Show
Rodrigo B. de Oliveira added a comment - Fixed in revision 3157.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: