Skip to content

Commit 8d71eee

Browse files
committed
по coderabbit review: исправлено получение имени типа
1 parent ed060af commit 8d71eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OneScript.Core/Values/BslPrimitiveValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public override int CompareTo(BslValue other)
2727
}
2828
catch (InvalidOperationException) // если тип не зарегистрирован
2929
{
30-
typeOfThis ??= GetType().ToString();
31-
typeOfOther ??= GetType().ToString();
30+
typeOfThis ??= this.GetType().ToString();
31+
typeOfOther ??= other.GetType().ToString();
3232
}
3333

3434
if (typeOfThis == typeOfOther)

0 commit comments

Comments
 (0)