repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2006-09-21 Mike Kestner <mkestner@novell.com>
[mcs.git]
/
errors
/
cs0122-16.cs
blob
b0fe186b969b7a20cb598339c03a70b9dfe3dd94
1
// cs0122-16.cs: `A.x' is inaccessible due to its protection level
2
// Line: 16
3
4
public class
A
5
{
6
protected bool
x
=
true
;
7
8
public
A
()
9
{}
10
}
11
12
public class
B
13
{
14
public static void
Main
(
string
[]
args
)
15
{
16
if
(
new
A
().
x
)
17
{
18
System
.
Console
.
WriteLine
(
"this should not compile"
);
19
}
20
}
21
}