degory / ghul

compiler for the ghūl programming language
https://ghul.dev
GNU Affero General Public License v3.0
4 stars 0 forks source link

MissingMethodException calling methods in FluentAssertions #987

Open degory opened 1 year ago

degory commented 1 year ago

Attempts to call some methods in generic types in FluentAssertions 6.10 results in runtime MissingMethodException. See build failures for https://github.com/degory/ghul-test/pull/64. Likely cause is incorrect actual generic parameters in the generated IL (names instead of indexed references)

degory commented 1 year ago

Think the issue is that this class in FluentAssertions references its own type as an actual generic argument of its generic base class: https://github.com/fluentassertions/fluentassertions/blob/6bd9d3ca3ec57555192ebe0a2758f00983f379ae/Src/FluentAssertions/Primitives/ObjectAssertions.cs#L13 This reference needs to be expressed as a numbered generic argument in the IL, not a name