projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #949 from ermshiperete/bug-novell-463149
[mono.git]
/
mcs
/
tests
/
test-primary-ctor-02.cs
1
using System;
2
3
partial class Part
4
{
5
public Part (string s)
6
: this (5)
7
{
8
if (arg != 5)
9
throw new ApplicationException ("1");
10
11
if (Property != 12)
12
throw new ApplicationException ("2");
13
}
14
}
15
16
partial class Part(int arg)
17
{
18
int field = 7;
19
20
int Property {
21
get {
22
return arg + field;
23
}
24
}
25
26
public static int Main ()
27
{
28
var p = new Part ("5");
29
if (p.Property != 12)
30
return 1;
31
32
return 0;
33
}
34
}