Commit 16afdc8
authored
Fix: --compile-suffix avoids the extra renaming of homonymous classes (#6073)
Fixes #6072
### What was changed?
I changed it so that the comparison between the module name and the
class name is done on the C# string, not the Dafny string vs. C# string.
### How has this been tested?
I added a check to ensure that in the generated C# code, the class named
`A` is not escaped when using `--compile-suffix`
<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>1 parent 0460827 commit 16afdc8
2 files changed
Lines changed: 14 additions & 2 deletions
File tree
- Source
- DafnyCore/Backends/CSharp
- IntegrationTests/TestFiles/LitTests/LitTest/git-issues
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 | | |
3 | 12 | | |
4 | 13 | | |
| |||
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
| |||
0 commit comments