projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #1508 from slluis/fix-20966
[mono.git]
/
mono
/
tests
/
generic-synchronized.2.cs
1
using System;
2
using System.Threading;
3
using System.Runtime.CompilerServices;
4
5
public class Gen<T> {
6
[MethodImplAttribute(MethodImplOptions.Synchronized)]
7
public int synch () {
8
return 123;
9
}
10
11
public int callSynch () {
12
return synch ();
13
}
14
}
15
16
public class main {
17
public static int Main () {
18
Gen<string> gs = new Gen<string> ();
19
20
gs.synch ();
21
gs.callSynch ();
22
23
return 0;
24
}
25
}