diff --git a/CHANGELOG.md b/CHANGELOG.md index 527346c..fd59d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v3.3.x - 2020.12.25 +- Fix bug with not passing type parameter for `Ldelem_Ref` instruction + ## v3.3.7 - 2020.05.23 - Support `Localloc` operation diff --git a/GrEmit.Tests/Test.cs b/GrEmit.Tests/Test.cs index ae1170d..e865865 100644 --- a/GrEmit.Tests/Test.cs +++ b/GrEmit.Tests/Test.cs @@ -77,16 +77,16 @@ public void Test_LdElem_OnClass_ShouldEmitType() il.Ret(); } - var check = "12345"; + var expectedResult = "12345"; - var inputs = new StringBuilder[check.Length]; - for (var i = 0; i < check.Length; i++) + var funcArguments = new StringBuilder[expectedResult.Length]; + for (var i = 0; i < expectedResult.Length; i++) { - inputs[i] = new StringBuilder(check[i].ToString()); + funcArguments[i] = new StringBuilder(expectedResult[i].ToString()); } var func = (Func)method.CreateDelegate(typeof(Func)); - Assert.That(func(inputs), Is.EqualTo(check)); + Assert.That(func(funcArguments), Is.EqualTo(expectedResult)); } [Test]