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-exmethod-32.cs
1
using System;
2
using System.Collections;
3
using System.Linq;
4
5
class A : IEnumerable
6
{
7
protected int Count
8
{
9
get { return 0; }
10
}
11
12
IEnumerator IEnumerable.GetEnumerator ()
13
{
14
return null;
15
}
16
}
17
18
class G<T> where T : A
19
{
20
void Test ()
21
{
22
T var = null;
23
int i = var.Count ();
24
}
25
}
26
27
public static class Extensions
28
{
29
public static int Count (this IEnumerable seq)
30
{
31
return 0;
32
}
33
34
public static void Main ()
35
{
36
}
37
}