2014-09-04 09:07:35 +01:00
|
|
|
// CS7094: The `await' operator cannot be used in the filter expression of a catch clause
|
|
|
|
// Line: 12
|
|
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
class Test
|
|
|
|
{
|
|
|
|
async static Task M1 ()
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
}
|
2015-04-07 09:35:12 +01:00
|
|
|
catch when (await Task.Factory.StartNew (() => false)) {
|
2014-09-04 09:07:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|