Changeset 2301
- Timestamp:
- 03/06/10 03:58:16 (2 years ago)
- Location:
- cobra/trunk
- Files:
-
- 2 added
- 2 modified
-
Developer/IntermediateReleaseNotes.text (modified) (1 diff)
-
Source/Phases/IdentifyMainPhase.cobra (modified) (1 diff)
-
Tests/700-command-line/880-compile-sharp.cobra (added)
-
Tests/700-command-line/hello-cobra.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Developer/IntermediateReleaseNotes.text
r2300 r2301 440 440 441 441 * Fixed: False compilation error in anonymous method with no return type and a simple `return` statement. ticket:197 442 443 * Fixed: Unable compile C#-only sources. ticket:194 -
cobra/trunk/Source/Phases/IdentifyMainPhase.cobra
r2202 r2301 19 19 if c.errors.count > 0, return # otherwise, messes up testify 20 20 21 count = 0 22 for mod in c.modules, if mod inherits CobraModule, count += 1 23 if count == 0, return # probably all sharp modules 24 21 25 typeName = .options.getDefault('main', '') to String 22 26 mainList = MainCollector().collect(c, typeName) 23 27 if mainList.count == 0 24 .recordError('Cannot find a "main" method.') 28 detail = if(typeName.length, ' in [typeName]', '') 29 .recordError('Cannot find a "main" method[detail].') 25 30 return 26 31 if mainList.count > 1



