diff options
author | Martin Odersky <odersky@gmail.com> | 2009-11-23 14:45:44 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-11-23 14:45:44 +0000 |
commit | 85befd69274d53fb2a4e7b9cdbd8fed8f3171e42 (patch) | |
tree | 63c6509c5f49a49a4d8deb09ad0e81d95550106f /test/files/pos | |
parent | 1e890eacbf99e0ac005c0afd256fa86e9d456d84 (diff) | |
download | scala-85befd69274d53fb2a4e7b9cdbd8fed8f3171e42.tar.gz scala-85befd69274d53fb2a4e7b9cdbd8fed8f3171e42.tar.bz2 scala-85befd69274d53fb2a4e7b9cdbd8fed8f3171e42.zip |
Closed #1226. Added new test cases.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/depexists.scala | 5 | ||||
-rw-r--r-- | test/files/pos/implicits.scala | 5 | ||||
-rw-r--r-- | test/files/pos/t1226.scala | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/depexists.scala b/test/files/pos/depexists.scala new file mode 100644 index 0000000000..d539c844c1 --- /dev/null +++ b/test/files/pos/depexists.scala @@ -0,0 +1,5 @@ +object depexists { + + val c: Cell[(a, b)] forSome { type a <: Number; type b <: (a, a) } = null + val d = c +} diff --git a/test/files/pos/implicits.scala b/test/files/pos/implicits.scala index 485d24101e..4979835e21 100644 --- a/test/files/pos/implicits.scala +++ b/test/files/pos/implicits.scala @@ -50,3 +50,8 @@ object Test2188 { val x: java.util.List[String] = List("foo") } + +object TestNumericWidening { + val y = 1 + val x: java.lang.Long = y +} diff --git a/test/files/pos/t1226.scala b/test/files/pos/t1226.scala new file mode 100644 index 0000000000..0af21cbb61 --- /dev/null +++ b/test/files/pos/t1226.scala @@ -0,0 +1,8 @@ +package graphs; + +abstract class Graph (private[graphs] val mappings : Any){ +} + +class Nodes (mappings : Any) extends Graph(mappings) { + mappings.toString; +} |