From 22ca8abece7195237b4063f7c648c5a36dd66611 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Mon, 17 May 2021 23:34:04 -0700 Subject: [PATCH] bigint.d: add return annotations for opOpAssign() --- std/bigint.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/std/bigint.d b/std/bigint.d index 39ca1942e57..9d49868adb1 100644 --- a/std/bigint.d +++ b/std/bigint.d @@ -493,13 +493,14 @@ public: /** * Implements binary operators between `BigInt`'s and built-in integers. */ - BigInt opBinary(string op, T)(T y) pure nothrow @safe const + BigInt opBinary(string op, T)(T y) pure nothrow @safe const return scope if ((op=="+" || op == "*" || op=="-" || op=="/" || op=="|" || op=="&" || op=="^"|| op==">>" || op=="<<" || op=="^^") && isIntegral!T) { BigInt r = this; - return r.opOpAssign!(op)(y); + r.opOpAssign!(op)(y); + return r; } ///