Wiki

Ticket #119: ref-exceptions-tkt119.patch

File ref-exceptions-tkt119.patch, 1.5 KB (added by hopscc, 9 years ago)
  • Source/Compiler.cobra

     
    830830        """ 
    831831        try 
    832832            return _loadReference(reference) 
     833        catch System.IO.FileLoadException 
     834            return false 
    833835        catch fnfe as System.IO.FileNotFoundException 
    834836            # example: Could not load file or assembly 'NHibernate, Version=2.1.0.1001, 
    835837            # Culture=neutral, PublcKeyToken=aa95f207798dfdb4' or one of its dependencies. The 
  • Tests/820-errors/600-other/140-bad-ref.cobra

     
     1# .compile-only. 
     2# .args. -ref:c:\badref 
     3# .error. Cannot locate assembly reference "c:\badref.dll" 
     4class Ticket119 
     5    def main is shared 
     6        pass 
  • Developer/IntermediateReleaseNotes.text

     
    311311* Fixed: The compile does not correctly read nilable types from libraries, resulting in false compilation errors. ticket:136 
    312312 
    313313* Fixed: Passing a method reference as a named property to an initalizer causes a false compilation error. 
     314 
     315* Fixed: -ref: throws exceptions in some cases where the reference cannot be located. ticket:119