1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// CS0269: Use of unassigned out parameter `a' // Line: 23 struct A { public int a; public A (int foo) { a = foo; } } class X { static void test_output (A a) { } static void test5 (out A a) { test_output (a); a = new A (5); } }