[Issue 3934] Some untidy attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 8 03:25:36 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3934



--- Comment #13 from bearophile_hugs at eml.cc 2010-11-08 03:24:30 PST ---
This is C# code:

class Foo {}
public class Test : Foo {
    public static void Main() {}
}


The C# compiler gives this error:
prog.cs(2,14): error CS0060: Inconsistent accessibility: base class `Foo' is
less accessible than class `Test'


While the D 2.050 compiler gives no errors with this code:

private class Foo {}
public class Bar : Foo {}
void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list