diff options
author | Dale Wijnand <dale.wijnand@gmail.com> | 2016-05-24 14:09:48 +0100 |
---|---|---|
committer | Dale Wijnand <dale.wijnand@gmail.com> | 2016-05-26 16:01:57 +0100 |
commit | 3873fcfcbcc6c7f0c1660c18e45b265170580546 (patch) | |
tree | 59952086ce1560c73654a610645e78c6baf2f595 /test/files/run/repl-no-imports-no-predef-classbased.check | |
parent | 65642d9f5ca6abc4836811fd0db0fc7d7b4dcb1c (diff) | |
download | scala-3873fcfcbcc6c7f0c1660c18e45b265170580546.tar.gz scala-3873fcfcbcc6c7f0c1660c18e45b265170580546.tar.bz2 scala-3873fcfcbcc6c7f0c1660c18e45b265170580546.zip |
Fully qualify types in REPL generated code
Diffstat (limited to 'test/files/run/repl-no-imports-no-predef-classbased.check')
-rw-r--r-- | test/files/run/repl-no-imports-no-predef-classbased.check | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/files/run/repl-no-imports-no-predef-classbased.check b/test/files/run/repl-no-imports-no-predef-classbased.check new file mode 100644 index 0000000000..a796600061 --- /dev/null +++ b/test/files/run/repl-no-imports-no-predef-classbased.check @@ -0,0 +1,23 @@ + +scala> case class K(s: java.lang.String) +defined class K + +scala> class C { implicit val k: K = K("OK?"); override def toString = "C(" + k.toString + ")" } +defined class C + +scala> val c = new C +c: C = C(K(OK?)) + +scala> import c.k +import c.k + +scala> scala.Predef.implicitly[K] +res0: K = K(OK?) + +scala> val k = 42 +k: Int = 42 + +scala> k // was K(OK?) +res1: Int = 42 + +scala> :quit |