Version Used: VS2015.3 RTM
CSC Version: Microsoft (R) Visual C# Compiler version 1.3.1.60616
Steps to Reproduce:
git clone -b crash-sample https://github.com/jtheisen/moldinium.gitExpected Behavior:
All Classes and Methods in ConsoleApplication1\bin\Debug\ConsoleApplication1.exe Verified.
Actual Behavior:
[IL]: Error: [C:\Source\Repos\moldinium\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe : IronStone.Moldinium.LiveList+<>c__DisplayClass10_0`1[TSource]::b__2][offset 0x0000013B] Unable to resolve token.
If you remove all the ?. operators from the Select.cs file, the program passes PEVerify.
This happens if you build in debug or release configurations.
More information in this SO post.
Here is a minimal repro:
``` c#
using System;
public static class LiveList
{
struct WhereInfo
{
public int Key { get; set; }
}
public static void Where<TSource>()
{
Action subscribe = () =>
{
WhereInfo<TSource>? previous = null;
var previousKey = previous?.Key;
};
}
public static void Main()
{
}
}
```
Most helpful comment
Here is a minimal repro:
``` c#
using System;
public static class LiveList
{
struct WhereInfo
{
public int Key { get; set; }
}
}
```