repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-11-17 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
gcs1940.cs
blob
e53a5a6b98c7a08f4431433d564d334b0d52f83c
1
// CS1940: Ambiguous implementation of the query pattern `Select' for source type `Multiple'
2
// Line: 10
3
4
class
Multiple
5
{
6
delegate int
D1
(
int
x
);
7
delegate int
D2
(
int
x
);
8
9
int
Select
(
D1 d
)
10
{
11
return
0
;
12
}
13
14
int
Select
(
D2 d
)
15
{
16
return
1
;
17
}
18
19
public static void
Main
()
20
{
21
var
q
=
from
x
in new
Multiple
()
select
x
;
22
}
23
}