Ticket #177 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

Attributes on `def main` are not respected when not `is shared`

Reported by: Chuck Owned by:
Priority: medium Milestone: Cobra 0.9
Component: Cobra Compiler Version: 0.8.0
Keywords: main, attributes Cc:


For example, in WinForms, it is common to put has STAThread on def main, but if the main is not shared, this won't be effective.

See discussion at:

The test case for this should be one that fails hard to demonstrate the bug. At least one way to do this is to use reflection to ask for the executing assembly, then ask for the entry point and then look at the attributes. Assert that the attribute is there.

Change History

Changed 9 years ago by Chuck


Changed 9 years ago by Chuck

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:2345

Note: See TracTickets for help on using tickets.