Bug 30755

Summary: using static does not import const members when static class is defined in separate assembly
Product: [Mono] Compilers Reporter: David Siegel <david.siegel>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description David Siegel 2015-06-03 17:06:03 UTC
In library:

  public static class Goodies {
    public const int Zero = 0;
    public static readonly int One = 1;
  }

In client project:

  using static MyLib.Goodies;

  // Zero is not found and compile failes
  // One is found just fine

The same class copied to the client project allows importing the const.
Comment 1 Marek Safar 2015-06-04 10:49:50 UTC

*** This bug has been marked as a duplicate of bug 28976 ***