Skip to content

Commit c01d596

Browse files
authored
Merge pull request #14139 from dwijnand/repl/reset-with-opts
REPL: Add compiler options to :reset
2 parents 8d28d94 + 4902a68 commit c01d596

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

compiler/test-resources/repl/reset-command

+14-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@ scala> def f(thread: Thread) = thread.stop()
1212
|method stop in class Thread is deprecated since : see corresponding Javadoc for more information.
1313
def f(thread: Thread): Unit
1414

15-
scala>
15+
scala> def resetNoArgsStillWorks = 1
16+
def resetNoArgsStillWorks: Int
17+
18+
scala>:reset
19+
20+
scala> resetNoArgsStillWorks
21+
-- [E006] Not Found Error: -----------------------------------------------------
22+
1 | resetNoArgsStillWorks
23+
| ^^^^^^^^^^^^^^^^^^^^^
24+
| Not found: resetNoArgsStillWorks
25+
longer explanation available when compiling with `-explain`
26+
1 error found
27+
28+
scala>:settings "-Dfoo=bar baz"

0 commit comments

Comments
 (0)