I got a similar behavior here.
When I sometimes try to type in something like if (myvar is sometype)
or (myvar as sometype).foo()
the "is" respectively "as" are overwritten by "sometype".
This happens - as far as I remember - on bigger files (> 4000 lines) and after running the IDE (VS2005 Team SP2 on XP SP2) longer than 4 hours or so. I just can't say for sure, because quote:
It only happens occasionally, and may be related to typing speed. (DrB)
Next time I see this behavior I'll try the "new default C# project" for a test...
Edit:
It happened once while typing swiftly but it was not directly reproducible a second time. Thus starting with a new project won't be sufficient IMHO...
But this time (File length 263 lines) it replaced the object variable and the dot! myvar.ToSt //typed in
ToString //result with intellisense (Tab key) completed