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
[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git]
/
mono
/
tests
/
bug-bxc-795.cs
blob
d8e88e60c824450be3273cb3ecdb2949109fa07d
1
public abstract class
BaseClass
<
T
> {}
2
public class
ClassA
:
BaseClass
<
ClassB
>
{ }
3
public class
ClassB
:
ClassA
{}
4
5
public class
TestClass
6
{
7
static int
Main
() {
8
object
x
=
new
ClassB
();
9
if
(!(
x
is
ClassA
))
10
return
1
;
11
if
(!(
x
is
BaseClass
<
ClassB
>))
12
return
2
;
13
return
0
;
14
}
15
}