Bugzilla – Bug 320749
[Flow-analysis] use of unitialized variable.
Last modified: 2013-11-25 15:11:09 UTC
---- Reported by miguel@ximian.com 2006-04-03 15:03:04 MST ---- Jon Jagger found this bug: class App { public static void F(out int x, int y) { System.Console.WriteLine(y); x = 42; } public static void Main() { int x; F(out x, x); } } and allows you you see the value of an uninitialized variable! I think this is a bug (the relevant clause is in the definite assignment of invocation expressions...) ---- Additional Comments From rharinath@novell.com 2006-05-04 07:13:44 MST ---- This has to wait until we start tracking 'definite assignment' in expressions. I have the vague outlines of an idea of how to do it reasonably non-invasively. ---- Additional Comments From miguel@ximian.com 2007-01-01 03:56:36 MST ---- Setting severity to two months. This bug depended on bug(s) 57747. Unknown operating system unknown. Setting to default OS "Other".
Reassigning to Miguel to drive further resolution...
Fixed