Commit d27ef43
committed
Minimal bugfix: relax return type equality check
The previous commit's test fails due to DynamicProxy treating the base
and derived record classes' `<Clone>$` methods as two distinct methods
(because they differ in their exact return type), instead of as a single
overridden method. We can change this by adjusting `MethodSignature-
Comparer` such that it also accepts assignment-compatible return types.1 parent 2cf79ee commit d27ef43
File tree
1 file changed
+7
-2
lines changed- src/Castle.Core/DynamicProxy/Generators
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | | - | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
0 commit comments