diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-29 07:41:41 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-09 16:47:52 -0700 |
commit | 31ed2e8da246da07a3318c34cdfae2ca02740524 (patch) | |
tree | c66bda59fdb521c405eaf8247f2fc0cc2d1498d2 /test/files/run/repl-colon-type.check | |
parent | f56f9a3c4b7b9903c732658f052be1172dfd9baa (diff) | |
download | scala-31ed2e8da246da07a3318c34cdfae2ca02740524.tar.gz scala-31ed2e8da246da07a3318c34cdfae2ca02740524.tar.bz2 scala-31ed2e8da246da07a3318c34cdfae2ca02740524.zip |
Moved IMain ops requiring stability into implicit class.
A long-standing annoyance of having IMain stored in a var
is that you can't call a method on it which returns a dependent
type and then pass that to any other method. I realized I
could get around this by creating an implicit class around
the var; in the class, it is a val, so the method can be written
there, and we implicitly convert from the var on demand.
Diffstat (limited to 'test/files/run/repl-colon-type.check')
-rw-r--r-- | test/files/run/repl-colon-type.check | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/files/run/repl-colon-type.check b/test/files/run/repl-colon-type.check index 2e8ce8c801..7716221f54 100644 --- a/test/files/run/repl-colon-type.check +++ b/test/files/run/repl-colon-type.check @@ -14,7 +14,6 @@ scala> :type List[1, 2, 3] List[1, 2, 3] ^ - scala> :type List(1, 2, 3) List[Int] @@ -55,7 +54,6 @@ scala> :type protected lazy val f = 5 lazy val $result = f ^ - scala> :type def f = 5 => Int |