Commit c2e3ff4
committed
C#: Fix SearchResult.Found using dynamic dispatch instead of reflection
SearchResult.Found used GetMethod reflection to call WithMarkers on
concrete tree types. This silently returned the same instance when
GetMethod failed, breaking PreconditionsCheckTest assertions that
were previously masked by Gradle build cache.
Replace the fragile reflection with dynamic dispatch, which reliably
resolves WithMarkers on any concrete type at runtime.1 parent 71809c7 commit c2e3ff4
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
0 commit comments