Posted 16 years ago
by JesperTreetop
Version: 4.0.0276
Platform: .NET 3.5
Environment: Windows XP (32-bit)

SyntaxEditor build 276 breaks something that worked in 275: parameters in anonymous methods or lambdas don't seem to be recognized.
This sample demonstrates the problem:IntelliPrompt doesn't show up when the dot after the i is typed. There's no tooltip when the mouse is hovered over the i, nor does the i show up in the IntelliPrompt list for variables if you Ctrl+Space after the lambda operator (=>). The x variable in the Test scope is on the other hand perfectly reachable in all these senses. Adding the "int" type to the lambda parameter list or switching to an anonymous method using the delegate keyword doesn't seem to change anything.
This sample demonstrates the problem:
public class Easy {
public static void Foo(Action<int> act) {
;
}
}
public class Test {
void Test() {
int x;
Easy.Foo(i => i. /** !!! **/ );
}
}