Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jonpryor@vt.edu>2011-10-03 23:27:56 +0400
committerDuncan Mak <duncanm@microsoft.com>2016-10-08 03:29:36 +0300
commit0175f58cf5f356707421914b632528223a74e1de (patch)
tree828c98c1637cc4604cd3a863ae94d47939286fde /mdoc/Test/en.expected
parent3be70d47fba3e19ff3a617adc650e654bb623e96 (diff)
[mdoc] Add tests for C#4 variance support.
Diffstat (limited to 'mdoc/Test/en.expected')
-rw-r--r--mdoc/Test/en.expected/Mono.DocTest.Generic/Func`2.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdoc/Test/en.expected/Mono.DocTest.Generic/Func`2.xml b/mdoc/Test/en.expected/Mono.DocTest.Generic/Func`2.xml
index a52f177d..2d8dcf09 100644
--- a/mdoc/Test/en.expected/Mono.DocTest.Generic/Func`2.xml
+++ b/mdoc/Test/en.expected/Mono.DocTest.Generic/Func`2.xml
@@ -1,6 +1,6 @@
<Type Name="Func&lt;TArg,TRet&gt;" FullName="Mono.DocTest.Generic.Func&lt;TArg,TRet&gt;">
- <TypeSignature Language="C#" Value="public delegate TRet Func&lt;TArg,TRet&gt;(TArg a) where TArg : Exception;" />
- <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2&lt;(class System.Exception) TArg, TRet&gt; extends System.MulticastDelegate" />
+ <TypeSignature Language="C#" Value="public delegate TRet Func&lt;in TArg,out TRet&gt;(TArg a) where TArg : Exception;" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2&lt;(class System.Exception) - TArg, + TRet&gt; extends System.MulticastDelegate" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
@@ -13,6 +13,7 @@
</Attribute>
</Attributes>
<Constraints>
+ <ParameterAttribute>Contravariant</ParameterAttribute>
<BaseTypeName>System.Exception</BaseTypeName>
</Constraints>
</TypeParameter>
@@ -22,6 +23,9 @@
<AttributeName>Mono.DocTest.Doc("ret!")</AttributeName>
</Attribute>
</Attributes>
+ <Constraints>
+ <ParameterAttribute>Covariant</ParameterAttribute>
+ </Constraints>
</TypeParameter>
</TypeParameters>
<Base>