projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-570.cs
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
}