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
Fix all CreateInstance overloads for void
[mcs.git]
/
errors
/
gcs1942-2.cs
blob
f67f376da67fd64049d10f4d5c55c7c3eaebe9a1
1
// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
2
// Line: 18
3
4
using
System
;
5
6
class
TestA
7
{
8
public string
Select
<
U
> (
Func
<
TestA
,
U
>
f
)
9
{
10
return
""
;
11
}
12
}
13
14
public class
C
15
{
16
static void
Main
()
17
{
18
string
foo
=
from
a
in new
TestA
()
select null
;
19
}
20
}