neo-devpack-dotnet icon indicating copy to clipboard operation
neo-devpack-dotnet copied to clipboard

fix inline for null body method

Open Jim8y opened this issue 1 year ago • 2 comments

this pr fixes https://github.com/neo-project/neo-devpack-dotnet/issues/1209

Jim8y avatar Oct 22 '24 14:10 Jim8y

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        private static void ArrowInline(int a, int b) => CallMethodThatReturnsInt(a, b);

The compiler should drop the returned value in this case.

Hecate2 avatar Oct 23 '24 03:10 Hecate2

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        private static void ArrowInline(int a, int b) => CallMethodThatReturnsInt(a, b);

The compiler should drop the returned value in this case.

If it's private yes, if it's public... Maybe we can create a new issue for it

shargon avatar Oct 23 '24 08:10 shargon

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        private static void ArrowInline(int a, int b) => CallMethodThatReturnsInt(a, b);

The compiler should drop the returned value in this case.

Fixed.

Jim8y avatar Dec 28 '24 15:12 Jim8y