HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/numba/tests/overload_usecases.py
# Python 3 syntax only use cases, used in test_extending.py

# arg name is different, and there's no arg name to match before *args


def impl4(z, *args, kw=None):
    if z > 10:
        return 1
    else:
        return -1

# arg name is different but at a detectable location, with *args


def impl5(z, b, *args, kw=None):
    if z > 10:
        return 1
    else:
        return -1


def var_positional_impl(a, *star_args_token, kw=None, kw1=12):
    def impl(a, b, f, kw=None, kw1=12):
        if a > 10:
            return 1
        else:
            return -1
    return impl