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-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
gcs0266-5.cs
blob
93eeca1a986b75f8db45c58cacc354bd0a8f6b8b
1
// CS0266: Cannot implicitly convert type `S?' to `A'. An explicit conversion exists (are you missing a cast?)
2
// Line: 9
3
4
struct
S
5
{
6
public static int
Main
()
7
{
8
S
?
s
=
null
;
9
A a
=
s
;
10
return
0
;
11
}
12
}
13
14
struct
A
15
{
16
public static implicit operator
A
(
S x
)
17
{
18
return new
A
();
19
}
20
}