Files
mono/mcs/errors/cs0208.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

24 lines
358 B
C#

// cs0208.cs: Cannot take the address of, get the size of, or declare a pointer to a managed type `cs208.Foo'
// Line: 20
// Compiler options: -unsafe
namespace cs208
{
public class Foo
{
public int Add (int a, int b)
{
return a + b;
}
}
public class Bar
{
unsafe static void Main ()
{
Foo f = new Foo ();
void *s = &f;
}
}
}