repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update the reference assemblies we ship in mono.
[mono-project.git]
/
mcs
/
errors
/
cs1503-15.cs
blob
4313fcf2c8d358bc0d4ce2fd2f6f73185d1476f5
1
// CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>'
2
// Line: 18
3
4
interface
IFoo
<
in
T
>
5
{
6
}
7
8
class
C
9
{
10
public static void
Foo
<
T
> (
IFoo
<
T
>
e1
,
IFoo
<
T
>
e2
)
11
{
12
}
13
14
public static void
Main
()
15
{
16
IFoo
<
int
>
a
=
null
;
17
IFoo
<
object
>
b
=
null
;
18
Foo
(
a
,
b
);
19
}
20
}