diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-11-19 18:32:03 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-11-19 18:32:03 +0300 |
commit | dda0fa37366b468e36cd0914c64641c57380205d (patch) | |
tree | 0e33a757b0a27eb4ab463a28cd37f66e3e3fc6a5 /mcs/errors/cs0208-3.cs | |
parent | c5d3653ffd401d78d4c12206c8d2c46b556b9618 (diff) | |
parent | e6f4c7973096202b36fa4e3083a5de6562b1205a (diff) |
renamed
svn path=/trunk/mcs/; revision=36323
Diffstat (limited to 'mcs/errors/cs0208-3.cs')
-rw-r--r-- | mcs/errors/cs0208-3.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs0208-3.cs b/mcs/errors/cs0208-3.cs new file mode 100644 index 00000000000..b2950db3c23 --- /dev/null +++ b/mcs/errors/cs0208-3.cs @@ -0,0 +1,22 @@ +// cs0202.cs: The call to GetEnumerator must return a class or a struct, not 'Foo.P*' +// Line: 18 +// Compiler options: -unsafe + +public unsafe class Foo +{ + public class P + { + public P* GetEnumerator () + { + return null; + } + } + + public static void Main () + { + P o = new P (); + foreach (P p in o) + { + } + } +} |