Add assert when dllmap is disabled and fix support build in netcore mode
[mono-project.git] / mono / tests / dim-constrained3.il
bloba3f653af2fc75e40ae5af753eb8ca0598e801a08
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 .assembly extern mscorlib { }
6 .assembly constrained3 { }
8 .class interface private abstract auto ansi IFrobber`1<T>
10   .method public hidebysig newslot virtual instance int32 Frob()
11   {
12     ldstr "IFrobber<T>:Frob"
13     call void [mscorlib]System.Console::WriteLine(string)
15     ldc.i4 34
16     ret
17   }
20 .class interface private abstract auto ansi IRobber`1<T> implements class IFrobber`1<!T>
22   .method public hidebysig final newslot virtual instance int32 Frob()
23   {
24     .override class IFrobber`1<!T>::Frob
25     ldstr "IRobber<T>:Frob"
26     call void [mscorlib]System.Console::WriteLine(string)
27     ldc.i4 66
28     ret
29   }
32 .class interface private abstract auto ansi IGrabber`1<T> implements class IFrobber`1<!T>
34   .method public hidebysig final newslot virtual instance int32 Frob()
35   {
36     .override class IFrobber`1<!T>::Frob
37     ldstr "IGrabber<T>:Frob"
38     call void [mscorlib]System.Console::WriteLine(string)
39     ldc.i4.3
40     ret
41   }
44 .class value Adder`1<T, U> implements class IFrobber`1<!T>, class IRobber`1<!U>, class IGrabber`1<!U[]>
48 .method public hidebysig static int32 Main()
50     .entrypoint
52     .locals init (
53       valuetype Adder`1<object, string>
54     )
56     ldloca.s 0
57     constrained. valuetype Adder`1<object, string>
58     callvirt instance int32 class IFrobber`1<object>::Frob()
60     ldloca.s 0
61     constrained. valuetype Adder`1<object, string>
62     callvirt instance int32 class IFrobber`1<string>::Frob()
63     add
64         ldc.i4 100
65         sub
67     ret