Wiki

Changeset 2301

Show
Ignore:
Timestamp:
03/06/10 03:58:16 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Fixed: Unable compile C#-only sources.
ticket:194
credit:hopscc

Location:
cobra/trunk
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Developer/IntermediateReleaseNotes.text

    r2300 r2301  
    440440 
    441441* 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  
    1919        if c.errors.count > 0, return   # otherwise, messes up testify 
    2020 
     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 
    2125        typeName = .options.getDefault('main', '') to String 
    2226        mainList = MainCollector().collect(c, typeName) 
    2327        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].') 
    2530            return 
    2631        if mainList.count > 1