This project is read-only.
1
Vote

Simplification fails on top-level statement in VB Script

description

Source (the entirety of a VB Script-type document):
System.Int32.Parse("")
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 https://roslyn.codeplex.com/workitem/361.

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.

comments