Commit 664d9d3
tests/RedundantNewKeyword: new 'use' testcase
Given that using the 'use' keyword on a non-IDisposable type
would be flagged by the F# compiler as an (FS0193) error,
we should assume that the type implements IDisposable when
this keyword is present (because it's logical to assume that
you run FSharpLint as an extra layer of correctness on top of
compilation itself).
Co-authored-by: webwarrior-ws <[email protected]>1 parent 6e434a6 commit 664d9d3
File tree
1 file changed
+12
-0
lines changed- tests/FSharpLint.Core.Tests/Rules/Conventions
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments