The following code compiles with warning and intellisense error:
ref class Test {
initonly static TimeSpan Delay = TimeSpan(1,1,1);
Test() {
Thanks to Hans Passant for his explanation, I understand the context much better now
I have just come across the same problem.
My solution was
Maybe this is not 'state of the art' coding but it works fine, see here (VisualStudio2017 does still expose this behaviour/problem)