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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
gtest-168-lib.cs
blob
afc0c240c830c80a7aae8b8ea949400481a69a0a
1
// Compiler options: -t:library
2
using
System
;
3
4
interface
IComp
<
a
>
5
{ }
6
7
class
opt
<
c
>
8
{ }
9
10
abstract class
Func
<
p1
,
r
>
11
{
12
public
r
apply
(
p1 x
)
13
{
14
throw new
System
.
Exception
();
15
}
16
}
17
18
class
NemerleMap
<
a
,
b
>
19
where a
:
IComp
<
a
>
20
{
21
public
opt
<
b
>
Find
(
a k
)
22
{
23
return null
;
24
}
25
26
public void
Fold
<
d
> (
a y
)
27
{
28
}
29
30
class
lambda
<
d
,
aa
,
bb
> :
Func
<
aa
,
aa
>
31
where aa
:
IComp
<
aa
>
32
{
33
public
aa
apply2
(
aa x
)
34
{
35
return
x
;
36
}
37
}
38
}