blob: fce32fdc2eb893eeafcfef95ca30a5b1dca5da6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Compiler options: -warnaserror
namespace System
{
class Int32
{
}
class Program
{
public static int Main ()
{
System.AppDomain.CurrentDomain.TypeResolve += new ResolveEventHandler (CurrentDomain_TypeResolve);
System.Type intType = System.Type.GetType ("System.Int32");
if (intType.AssemblyQualifiedName != "System.Int32, test-816, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
return 1;
return 0;
}
static System.Reflection.Assembly CurrentDomain_TypeResolve (object sender, ResolveEventArgs args)
{
throw new Exception ("Resolving " + args.Name);
}
}
}
|