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
2010-06-14 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
gcs0266-4.cs
blob
f10be25a49619471aa316d9cb8f3ff13cc680a13
1
// CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)
2
// Line: 9
3
4
class
X
5
{
6
static void
Main
()
7
{
8
object
o
=
true
;
9
bool
b
= (
o
??
string
.
Empty
);
10
}
11
}