a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
293 B
C#
20 lines
293 B
C#
delegate T Foo<out T> ();
|
|
|
|
public class Test
|
|
{
|
|
public static int Main ()
|
|
{
|
|
string message = "Hello World!";
|
|
Foo<string> foo = () => message;
|
|
if (Bar (foo) != message.GetHashCode ())
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
|
|
static int Bar (Foo<object> foo)
|
|
{
|
|
return foo().GetHashCode ();
|
|
}
|
|
}
|