summaryrefslogtreecommitdiff
path: root/test/files/run/t7747-repl.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-05-26 16:42:01 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-05-26 21:27:52 +1000
commitdb114aa44efe63763a883dcf07d667fe7d744ff6 (patch)
tree2e4a20b330d249c826a513025c8161649dc7ad47 /test/files/run/t7747-repl.check
parenta3bb887e0200cf47a1fa2382a18948b3c553cf26 (diff)
downloadscala-db114aa44efe63763a883dcf07d667fe7d744ff6.tar.gz
scala-db114aa44efe63763a883dcf07d667fe7d744ff6.tar.bz2
scala-db114aa44efe63763a883dcf07d667fe7d744ff6.zip
SI-7747 Limit previous change to imports of REPL vals
We only need to introduce the temporary val in the imports wrapper when we are importing a val or module defined in the REPL. The test case from the previous commit still passes, but we are generating slightly simpler code. Compared to 2.11.6, these two commits result in the following diff: https://gist.github.com/retronym/aa4bd3aeef1ab1b85fe9
Diffstat (limited to 'test/files/run/t7747-repl.check')
-rw-r--r--test/files/run/t7747-repl.check15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/files/run/t7747-repl.check b/test/files/run/t7747-repl.check
index 6eb8c8cd99..af47f23c62 100644
--- a/test/files/run/t7747-repl.check
+++ b/test/files/run/t7747-repl.check
@@ -258,15 +258,12 @@ class $read extends Serializable {
super.<init>;
()
};
- val $line44$read = $line44.$read.INSTANCE;
- import $line44$read.$iw.$iw.BippyBups;
- import $line44$read.$iw.$iw.BippyBups;
- val $line45$read = $line45.$read.INSTANCE;
- import $line45$read.$iw.$iw.PuppyPups;
- import $line45$read.$iw.$iw.PuppyPups;
- val $line46$read = $line46.$read.INSTANCE;
- import $line46$read.$iw.$iw.Bingo;
- import $line46$read.$iw.$iw.Bingo;
+ import $line44.$read.INSTANCE.$iw.$iw.BippyBups;
+ import $line44.$read.INSTANCE.$iw.$iw.BippyBups;
+ import $line45.$read.INSTANCE.$iw.$iw.PuppyPups;
+ import $line45.$read.INSTANCE.$iw.$iw.PuppyPups;
+ import $line46.$read.INSTANCE.$iw.$iw.Bingo;
+ import $line46.$read.INSTANCE.$iw.$iw.Bingo;
class $iw extends Serializable {
def <init>() = {
super.<init>;