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
Update dependencies from https://github.com/dotnet/corefx build 20191013.1
[mono-project.git]
/
mcs
/
tests
/
gtest-555.cs
blob
057481eb19ff4f1405b24a375d78784cd5bdcac5
1
using
System
;
2
3
struct
Program
4
{
5
static int
Test
<
T
> (
T o
)
6
{
7
return
o
is
Program
? ?
1
:
2
;
8
}
9
10
public static int
Main
()
11
{
12
if
(
Test
(
5
) !=
2
)
13
return
1
;
14
15
Program
?
a
=
new
Program
();
16
if
(
Test
(
a
) !=
1
)
17
return
2
;
18
19
return
0
;
20
}
21
}