repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs0123-8.cs
blob
42e3334514284123e876326f8fa95e32b288386e
1
// CS0123: A method or delegate `Test.Foo(int, bool)' parameters do not match delegate `System.Func<int,bool>(int)' parameters
2
// Line: 15
3
4
using
System
;
5
6
class
Test
7
{
8
static bool
Foo
(
int
x
,
bool
option
=
true
)
9
{
10
return true
;
11
}
12
13
static void
Main
()
14
{
15
Func
<
int
,
bool
>
f
=
Foo
;
16
}
17
}