struct usage problem: Use of unassigned local variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mono (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I new in mono and C#. I try to use sample from book with struct ussage and get error:
using System;
namespace Proj
{
public struct Point
{
{
}
{
}
}
public class Program
{
{
}
}
}
$ mono-csc Program.cs
Program.cs(32,43): error CS0165: Use of unassigned local variable `p'
Compilation failed: 1 error(s), 0 warnings