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
2010-02-20 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-570.cs
blob
938abb24a9726a3ce411044e2dd4462b608aa19b
1
//Compiler options: -warnaserror -warn:4
2
3
using
System
;
4
interface
IFoo
5
{
6
}
7
8
class
Bar
9
{
10
}
11
12
class
Program
13
{
14
public static void
Main
()
15
{
16
IFoo foo
=
null
;
17
if
(
foo
is
IFoo
)
18
Console
.
WriteLine
(
"got an IFoo"
);
// never prints
19
20
Bar bar
=
null
;
21
if
(
bar
is
Bar
)
22
Console
.
WriteLine
(
"got a bar"
);
// never prints
23
}
24
}