As you can see, the compiler does not recognize “Stream”.
But in the editor, stream is blue (a valid class) and when I put my mouse over it, it sees that it is System.Io.Stream.
A strange combination; the editor is in this case smarter than the compiler
I think an auto-correct (it should have been System.IO.Stream, because there is no uses for system IO in the file) would be nice in a situation like this.
It does actually offer a suggestion there, and yes the IDE will treat it as the most likely type, the compiler fails because it’s the default, there’s a compiler option “Ignore fixable errors” that will make it succeed here.
I just installed the latest version, and the problem is still the same.
There are 2 possible solutions:
Show the error in the editor
Compile without errors
If I look at the code I send you, it should be 1; I have no uses in the file, so the editor should not resolve Stream - it should have been System.Io.Stream.