From 6a431e9aa37df02ccb839d26a8576ba85a44fdfb Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 15 Dec 2021 15:11:27 +0900 Subject: [PATCH] Add a test for that --- test/testShadowedDefaultArgument.krk | 4 ++++ test/testShadowedDefaultArgument.krk.expect | 1 + 2 files changed, 5 insertions(+) create mode 100644 test/testShadowedDefaultArgument.krk create mode 100644 test/testShadowedDefaultArgument.krk.expect diff --git a/test/testShadowedDefaultArgument.krk b/test/testShadowedDefaultArgument.krk new file mode 100644 index 0000000..73c9fe5 --- /dev/null +++ b/test/testShadowedDefaultArgument.krk @@ -0,0 +1,4 @@ +def foo(print=print): + print("hello world") + +foo() diff --git a/test/testShadowedDefaultArgument.krk.expect b/test/testShadowedDefaultArgument.krk.expect new file mode 100644 index 0000000..3b18e51 --- /dev/null +++ b/test/testShadowedDefaultArgument.krk.expect @@ -0,0 +1 @@ +hello world