From 55e858010b9ba53c27475d9ce6f864a84d28fa81 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 14 Jul 2018 18:30:28 +0200 Subject: Resolve function overload via the argument reversal to untyped --- tests/function/builtin/testscript | 11 +---------- tests/function/filesystem/testscript | 5 +---- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'tests') diff --git a/tests/function/builtin/testscript b/tests/function/builtin/testscript index 6108455..d15eeb3 100644 --- a/tests/function/builtin/testscript +++ b/tests/function/builtin/testscript @@ -86,16 +86,7 @@ : path : - $* <'print $getenv([path] a)' 2>>~/EOE/ != 0 - :1:8: error: unmatched call to getenv(path) - /(( - info: candidate: getenv(), qualified name builtin.getenv - info: candidate: getenv(string), qualified name builtin.getenv - /)|( - info: candidate: getenv(string), qualified name builtin.getenv - info: candidate: getenv(), qualified name builtin.getenv - /)) - EOE + $* <'print $getenv([path] a)' >'[null]' : none : diff --git a/tests/function/filesystem/testscript b/tests/function/filesystem/testscript index 61fca19..7dcfde9 100644 --- a/tests/function/filesystem/testscript +++ b/tests/function/filesystem/testscript @@ -95,10 +95,7 @@ : string-path : - $* <'print $path_match([string] "b*", [path] "b")' 2>>~/EOE/ != 0 - :1:8: error: unmatched call to path_match(string, path) - /.{11} - EOE + $* <'print $path_match([string] "b*", [path] "b")' >'true' } : path -- cgit v1.1