Wiki

Ticket #177 (closed defect: fixed)

Opened 15 years ago

Last modified 15 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:

Description

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:  http://cobra-language.com/forums/viewtopic.php?f=4&t=362#p2614

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 15 years ago by Chuck

bump

Changed 15 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.