projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Don't do constraints on fabricated generic methods. Fixes #47672
[mono.git]
/
mcs
/
tests
/
gtest-lambda-24.cs
1
using System;
2
3
static class E
4
{
5
public static string Test<T> (this C c, T s, Func<T> f)
6
{
7
return "s";
8
}
9
}
10
11
public class C
12
{
13
int Test<T> (T b, Func<bool> f)
14
{
15
return 1;
16
}
17
18
static string Foo<T> (T t, Action<T> a)
19
{
20
a (t);
21
return "f";
22
}
23
24
public static void Main ()
25
{
26
var c = new C ();
27
Action<string> f = l => Foo ("v", l2 => c.Test ("a", () => ""));
28
f ("-");
29
}
30
}