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
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
errors
/
cs4004.cs
blob
7e88a0ff71e5296167856cdffeb62f6cde2c0440
1
// CS4004: The `await' operator cannot be used in an unsafe context
2
// Line: 12
3
// Compiler options: -unsafe
4
5
using
System
;
6
using
System
.
Threading
.
Tasks
;
7
8
class
C
9
{
10
public async
Task
Test
()
11
{
12
unsafe
{
13
await
Call
();
14
}
15
}
16
17
static
Task
Call
()
18
{
19
return null
;
20
}
21
}