From a33b0853452a625ac93eada7d5f265ed09f8e362 Mon Sep 17 00:00:00 2001 From: Jens Date: Fri, 13 May 2016 12:56:52 +0200 Subject: Add check to scala REPL package to improve feedback about implicits (#5159) When the repl is started with additional compiler flags that prevent implicits being in scope (like -Yno-predef) the default message of implicits in scope using :implicits stays the same. This additional check will return the same message if predef is indeed in scope and an adjusted message if Predef is not in scope. --- test/files/run/repl-implicits-nopredef.check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/run/repl-implicits-nopredef.check (limited to 'test/files/run/repl-implicits-nopredef.check') diff --git a/test/files/run/repl-implicits-nopredef.check b/test/files/run/repl-implicits-nopredef.check new file mode 100644 index 0000000000..a849801bb4 --- /dev/null +++ b/test/files/run/repl-implicits-nopredef.check @@ -0,0 +1,5 @@ + +scala> :implicits +No implicits have been imported. + +scala> :quit \ No newline at end of file -- cgit v1.2.3