projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
gtest-variance-16.cs
1
using System;
2
3
struct S
4
{
5
public static implicit operator string (S s)
6
{
7
return "s";
8
}
9
}
10
11
interface I<in T>
12
{
13
}
14
15
class C : I<string>
16
{
17
static T Foo<T> (T a, I<T> b)
18
{
19
return a;
20
}
21
22
public static int Main ()
23
{
24
S s = new S ();
25
I<string> i = new C ();
26
if (Foo (s, i) != "s")
27
return 1;
28
29
return 0;
30
}
31
}