Ticket #152 (assigned defect)
Automatic library referencing from "use" does not always work
Reported by: | Chuck | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | use, dll | Cc: |
Description
The following program gives an error if you comment out the "args" directive:
use System.Windows.Forms use System.Drawing %% args -ref:System.Drawing class Program def main is shared print Color.red
- error: The type or namespace name "Color" does not exist in the namespace "System.Drawing" (are you missing an assembly reference?)
I believe the problem is that
- "use System.Windows.Forms" automatically refs System.Drawing
- then "use System.Drawing" doesn't fault the System.Drawing.dll reference in
- so Cobra fails to pass an /r: onto C#.
See also: discussion
Attachments
Change History
Note: See
TracTickets for help on using
tickets.