linux-packaging-mono/mcs/tests/test-readonly-02.cs
Xamarin Public Jenkins (auto-signing) b7cd5de421 Imported Upstream version 5.10.0.71
Former-commit-id: 65f7f4344e4c1c5e42628faefa5b9d36955387d1
2018-01-30 19:19:26 +00:00

27 lines
311 B
C#

// Compiler options: -langversion:latest
using System;
public delegate ref readonly int D (int x);
class X
{
public static void Main ()
{
}
Guid g;
ref readonly Guid TestMethod ()
{
return ref g;
}
ref readonly Guid TestProp {
get {
ref readonly var rg = ref g;
return ref rg;
}
}
}