mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Added test case for previous commit.
This commit is contained in:
parent
9f76ed501e
commit
39962012cb
@ -189,3 +189,17 @@ def func2() -> None: ...
|
||||
|
||||
|
||||
test_10(test_10, func2)
|
||||
|
||||
|
||||
def test_11(func: Callable[[*Ts], T], *args: *Ts) -> T:
|
||||
return func(*args)
|
||||
|
||||
|
||||
def func3(num: int, /) -> int:
|
||||
return num
|
||||
|
||||
|
||||
test_11(test_11, func3, 123)
|
||||
|
||||
# This will generate an error, but it should not crash or cause an infinite loop.
|
||||
test_11(test_11, test_11, func3, 123)
|
||||
|
@ -816,7 +816,7 @@ test('SolverHigherOrder4', () => {
|
||||
test('SolverHigherOrder5', () => {
|
||||
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['solverHigherOrder5.py']);
|
||||
|
||||
TestUtils.validateResults(analysisResults, 0);
|
||||
TestUtils.validateResults(analysisResults, 1);
|
||||
});
|
||||
|
||||
test('SolverHigherOrder6', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user