Bug 321711 (MONO78998) - [GMCS] CS0060 is not reported for generic base type with less accessible type argument
Summary: [GMCS] CS0060 is not reported for generic base type with less accessible type...
Status: RESOLVED FIXED
Alias: MONO78998
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 22:03 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:05:24 UTC


---- Reported by gert.driesen@pandora.be 2006-08-02 15:03:59 MST ----

gmcs does not report CS0060 for the following code snippet (compiled 
using gmcs /target:library test.cs):

public class Foo<K> {
}

public class Bar : Foo<Bar.Baz> {
	private class Baz {
	}
}

Expected result:

test.cs(4,14): error CS0060: Inconsistent accessibility: base class
        'Foo<Bar.Baz>' is less accessible than class 'Bar'

Actual result:

No errors.

=====

same goes for:

public class Foo<K> {
}

public class Bar : Foo<Baz> {
}

internal class Baz {
}

Expected result:

test.cs(4,14): error CS0060: Inconsistent accessibility: base class
        'Foo<Baz>' is less accessible than class 'Bar'

Actual result:

No errors.



---- Additional Comments From marek.safar@seznam.cz 2006-10-28 09:30:48 MST ----

Fixed in SVN.


Unknown operating system unknown. Setting to default OS "Other".