Bug 52599

Summary: await in finally clause prevents disposal of enclosing using statement
Product: [Mono] Compilers Reporter: Rolf Bjarne Kvinge [MSFT] <rolf>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.8.0 (C9)   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: test.cs

Description Rolf Bjarne Kvinge [MSFT] 2017-02-17 10:16:35 UTC
Created attachment 19862 [details]
test.cs

Repro: compile & run attached sample

$ /Library/Frameworks/Mono.framework/Versions/4.9.0/bin/csc /nologo test.cs && mono test.exe
Disposed
PASSED

$ /Library/Frameworks/Mono.framework/Versions/4.9.0/bin/mcs /nologo test.cs && mono test.exe
FAILED
Comment 1 Marek Safar 2017-02-23 11:37:32 UTC
Fixed in master