We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a54d92b commit 9270506Copy full SHA for 9270506
1 file changed
tests/GeneratedCodeTests.fs
@@ -182,4 +182,12 @@ let ``typeof``() =
182
<@
183
typeof<DateTime>.Name
184
@> "DateTime"
185
- ]
+ ]
186
+
187
+[<Fact>]
188
+let ``try-finally with a unit-returning method``() =
189
+ testProvidedAssembly
190
+ [
191
+ (<@@ try ResizeArray<int>().Clear() finally ResizeArray<int>().Clear() @@>),
192
+ (fun _ -> ()) // just checking for InvalidProgramException
193
0 commit comments