projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe558a
)
Add regression test for #668506
author
Rodrigo Kumpera
<kumpera@gmail.com>
Wed, 9 Feb 2011 17:40:19 +0000
(18:40 +0100)
committer
Rodrigo Kumpera
<kumpera@gmail.com>
Thu, 10 Feb 2011 19:10:13 +0000
(20:10 +0100)
mcs/class/corlib/Test/System/TypeTest.cs
patch
|
blob
|
history
diff --git
a/mcs/class/corlib/Test/System/TypeTest.cs
b/mcs/class/corlib/Test/System/TypeTest.cs
index f415e027167af8e535aaa5502b428b9421aaf071..6720334ea35b9c813f6cd569bd2dc536dedc5602 100644
(file)
--- a/
mcs/class/corlib/Test/System/TypeTest.cs
+++ b/
mcs/class/corlib/Test/System/TypeTest.cs
@@
-3887,6
+3887,13
@@
PublicKeyToken=b77a5c561934e089"));
MustTLE (string.Format ("{0}ZZZZ,{1}", typeof (MyRealEnum).FullName, aqn));
}
+ delegate void MyAction<in T>(T ag);
+
+ [Test] //bug #668506
+ public void IsAssignableFromWithVariantDelegate () {
+ Assert.IsFalse (typeof(MyAction<string>).IsAssignableFrom(typeof(MyAction<>)), "#1");
+ }
+
#endif
public abstract class Stream : IDisposable