Merge pull request #4845 from lambdageek/dev-coop-delegates
[mono.git] / mcs / errors / cs0523-5.cs
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
4
5 using System;
6
7 struct Handle<T>
8 {
9         public IntPtr Value;
10 }
11
12 struct Foo
13 {
14         public readonly Handle<Foo> Handle;
15 }