Kevin Halverson
Kevin Halverson
Fixed with 8e61348
This is not a regression from previous versions of the compiler/debugger, but it would be good to make async lambdas work the same as normal methods.
Yes, for normal methods and lambdas, the locals are considered "in scope" when the IP in the debugger is on the closing curly brace of the method body (Note: left/right...
@mavasani - can you verify?
Fixing this will require moving debugger Intellisense over to using SpeculativeSemanticModel. I've created a branch with an initial attempt at doing this: https://github.com/KevinH-MS/roslyn/tree/DebuggerIntellisense (code courtesy of @rchande)
This looks like the same issue as internal bug 114090 (the binder isn't seeing any imports in async lambdas).
Thanks! I'll take a look.
I think it's ok if the error message text is wrong in the event that we do show it (we're just surfacing the compiler error message). However, we shouldn't be...
I have a partial fix at 3f2f749305349b5220e7ee17c97b2328d4f5a1e4, but this is blocked by DevDiv 1182590 (the fix is not worth checking in without the corresponding fix in VIL).
**Note:** This seems to have first regressed in Visual Studio 2012.