提交 e11beed3 编写于 作者: C CyrusNajmabadi

Fix test.

上级 6bdb5a53
......@@ -2766,7 +2766,15 @@ class Program {
bool x = await [|Foo|] ( ) . ConfigureAwait ( false ) ;
}
}",
@"using System ; using System . Collections . Generic ; using System . Linq ; using System . Threading . Tasks ; class Program { static void Main ( string [ ] args ) { bool x = await Foo ( ) . ConfigureAwait ( false ) ; } private static Task < bool > Foo ( ) { throw new NotImplementedException ( ) ; } } ");
@"using System ;
using System . Collections . Generic ;
using System . Linq ;
using System . Threading . Tasks ;
class Program {
static void Main ( string [ ] args ) {
bool x = await Foo ( ) . ConfigureAwait ( false ) ;
}
private static Task < bool > Foo ( ) { throw new NotImplementedException ( ) ; } } ");
}
[WorkItem(643, "https://github.com/dotnet/roslyn/issues/643")]
......@@ -2781,7 +2789,12 @@ class C {
bool x = await [|M|] ( ) . ContinueWith ( a => { return true ; } ) . ContinueWith ( a => { return false ; } ) ;
}
} ",
@"using System ; using System . Threading . Tasks ; class C { static async void T ( ) { bool x = await M ( ) . ContinueWith ( a => { return true ; } ) . ContinueWith ( a => { return false ; } ) ; } private static object M ( ) { throw new NotImplementedException ( ) ; } } ");
@"using System ;
using System . Threading . Tasks ;
class C {
static async void T ( ) {
bool x = await M ( ) . ContinueWith ( a => { return true ; } ) . ContinueWith ( a => { return false ; } ) ; }
private static Task<object> M ( ) { throw new NotImplementedException ( ) ; } } ");
}
[WorkItem(529480, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529480")]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册