From 4902a6807d0269bd86d5de2a6c5f0e048e4f5e2c Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Thu, 2 Dec 2021 14:12:11 +0000 Subject: [PATCH] repl: Add compiler options to :reset --- compiler/test-resources/repl/reset-command | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/compiler/test-resources/repl/reset-command b/compiler/test-resources/repl/reset-command index 1f10820534b2..e47b3c45f696 100644 --- a/compiler/test-resources/repl/reset-command +++ b/compiler/test-resources/repl/reset-command @@ -12,4 +12,17 @@ scala> def f(thread: Thread) = thread.stop() |method stop in class Thread is deprecated since : see corresponding Javadoc for more information. def f(thread: Thread): Unit -scala> +scala> def resetNoArgsStillWorks = 1 +def resetNoArgsStillWorks: Int + +scala>:reset + +scala> resetNoArgsStillWorks +-- [E006] Not Found Error: ----------------------------------------------------- +1 | resetNoArgsStillWorks + | ^^^^^^^^^^^^^^^^^^^^^ + | Not found: resetNoArgsStillWorks +longer explanation available when compiling with `-explain` +1 error found + +scala>:settings "-Dfoo=bar baz"