From 45d032da52c58c96f08cff42b9332832a0d70b6a Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 12 Jun 2017 09:10:09 +1000 Subject: [PATCH] Fix a nameof() using wrong variable in GeneratedVariableIdentifier --- src/Generator.Rewrite/GeneratedVariableIdentifier.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator.Rewrite/GeneratedVariableIdentifier.cs b/src/Generator.Rewrite/GeneratedVariableIdentifier.cs index ec3389e..f8bbe33 100644 --- a/src/Generator.Rewrite/GeneratedVariableIdentifier.cs +++ b/src/Generator.Rewrite/GeneratedVariableIdentifier.cs @@ -40,7 +40,7 @@ namespace OpenTK.Rewrite if (definition == null) { - throw new ArgumentException("The definition argument cannot be null.", nameof(body)); + throw new ArgumentException("The definition argument cannot be null.", nameof(definition)); } if (string.IsNullOrEmpty(name)) @@ -53,4 +53,4 @@ namespace OpenTK.Rewrite this.Name = name; } } -} \ No newline at end of file +} -- 2.7.4