This project is read-only.

Simplification fails on top-level statement in VB Script


Source (the entirety of a VB Script-type document):
Opening the simplification quick fix will throw a null reference in AbstractSimplificationService.Reduce.
This does not happen when nested inside a method & class.

This may actually be an async codegen issue when compiling that method; inspecting the marker variable in the debugger throws a NullRef from the variable access (!). I suspect that the DisplayClass containing that variable is null; I have no idea if that's a debugger issue or a compiler issue. I also have no idea whether that's at all related to the same NullRef that I'm getting at runtime.

This may be related to

The simplest way to get a Script editor window to repro this is to build and run VSEmbed (requires Dev14 installed, but has no other prerequisites), then paste that text.