I am write code make the c# compiler and visual studio crash in unity5.3.3p2, in windows platform.
I simplify the code and reproduce this error with this short code:
using System;
using UnityEngine;
public static class CrashTest
{
private class Hello<T>
{
public Hello<E> Boo<E>(Func<T, Hello<E>> func)
{
return new Hello<E>();
}
}
public static void Foo<T>()
{
var hello = new Hello<T>();
hello.Boo(v => Debug.Log("v = " + v));
}
}
This code produce an error:
warning CS0618: `System.Security.Permissions.SecurityPermissionAttribute' is obsolete: `CAS support is not available with Silverlight applications.'
warning CS0618: `System.Security.Permissions.SecurityAction' is obsolete: `CAS support is not available with Silverlight applications.'
And when it compiling, the visual studio will crash at the same time.