summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0523-5.cs
blob: 63ca1e87a54c093af1b04ad44d83915a1a3ce2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0523: Struct member `Foo.Handle' of type `Handle<Foo>' causes a cycle in the struct layout
// Line: 13
// NOTE: Not detected by csc only by runtime loader

using System;

struct Handle<T>
{
	public IntPtr Value;
}

struct Foo
{
	public readonly Handle<Foo> Handle;
}