2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0523-5.cs
blob63ca1e87a54c093af1b04ad44d83915a1a3ce2c0
1 // CS0523: Struct member `Foo.Handle' of type `Handle<Foo>' causes a cycle in the struct layout
2 // Line: 13
3 // NOTE: Not detected by csc only by runtime loader
5 using System;
7 struct Handle<T>
9 public IntPtr Value;
12 struct Foo
14 public readonly Handle<Foo> Handle;