linux-packaging-mono/mcs/tests/gtest-linq-24.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
309 B
C#

using System;
using System.Linq;
class A
{
public int Value;
}
class C
{
A[] Prop {
get {
return new A [1] { new A () };
}
}
void Test ()
{
int i = 9;
var c = new C ();
var r = Prop.Select (l => l.Value).ToArray ();
}
public static int Main ()
{
new C().Test ();
return 0;
}
}