repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs1996.cs
blob
7bbfe24b3faea32dea63c3602d5f162a94e9e11a
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
}