Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs1540-14.cs
blob90c65b515a0e1f6f688e0d38cbfdecfd1f01fac9
1 // CS1540: Cannot access protected member `object.MemberwiseClone()' via a qualifier of type `anonymous type'. The qualifier must be of type `A' or derived from it
2 // Line: 9
4 class A
6 public A ()
8 var x = new { s = "-" };
9 x.MemberwiseClone();