projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
gtest-anontype-02.cs
1
// Compiler options: -langversion:linq
2
// Tests anonymous types initialized with local variables
3
using System;
4
using System.Collections;
5
6
public class Test
7
{
8
static int Main ()
9
{
10
string Foo = "Bar";
11
int Baz = 42;
12
var v = new { Foo, Baz };
13
14
if (v.Foo != "Bar")
15
return 1;
16
if (v.Baz != 42)
17
return 2;
18
19
return 0;
20
}
21
}