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
2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gtest-466.cs
blob
8da755dff9e55f8e1a6701ef5a56e00c2ae9aec3
1
using
System
;
2
3
class
Program
4
{
5
bool
Test
<
T
> (
T t
)
where T
:
class
6
{
7
return
t
==
this
;
8
}
9
10
static int
Main
()
11
{
12
var
p
=
new
Program
();
13
14
if
(
p
.
Test
(
"a"
))
15
return
1
;
16
17
if
(!
p
.
Test
(
p
))
18
return
2
;
19
20
return
0
;
21
}
22
}