projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5675 from mono/glib-debug-symbols
[mono.git]
/
mcs
/
errors
/
cs1996.cs
1
// CS1996: The `await' operator cannot be used in the body of a lock statement
2
// Line: 12
3
4
using System;
5
using System.Threading.Tasks;
6
7
class C
8
{
9
public async Task Test ()
10
{
11
lock (this) {
12
await Call ();
13
}
14
}
15
16
static Task Call ()
17
{
18
return null;
19
}
20
}