There is a compiler error, Visual Studio 2015 just does not report the error properly. However, Visual Studio 2013 does:
This is answered here: https://stackoverflow.com/a/13568247:
In short:
Add a reference to Microsoft.CSharp in order to use
dynamic
like this.