summaryrefslogtreecommitdiff
path: root/test/files/run/structural.scala
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2008-02-06 18:02:39 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2008-02-06 18:02:39 +0000
commit11d8e2c4870d13be7b4a651495aae8fb8946d60f (patch)
tree6e6f0534d1fd9edb843de85adec93425481879de /test/files/run/structural.scala
parent9b379d01bf4c1653d015d70aee8df71be8a6904e (diff)
downloadscala-11d8e2c4870d13be7b4a651495aae8fb8946d60f.tar.gz
scala-11d8e2c4870d13be7b4a651495aae8fb8946d60f.tar.bz2
scala-11d8e2c4870d13be7b4a651495aae8fb8946d60f.zip
Partial fix to #397.
Diffstat (limited to 'test/files/run/structural.scala')
-rw-r--r--test/files/run/structural.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/files/run/structural.scala b/test/files/run/structural.scala
index d6b2b3d09f..5fc2292b42 100644
--- a/test/files/run/structural.scala
+++ b/test/files/run/structural.scala
@@ -171,8 +171,31 @@ object test3 {
}
+object test4 {
+
+ class A
+
+ val aar = Array(new A, new A, new A)
+ val nar = Array(1, 2)
+
+ def f(p: {def size: Int}) = println(p.size)
+ //def g[T <: {def size: Int}](p: T) = println(p.size) // open issue
+ //def h[T <% {def size: Int}](p: T) = println(p.size) // open issue
+
+ f(aar)
+ f(nar)
+
+ //g(aar)
+ //g(nar)
+
+ //h(aar)
+ //h(nar)
+
+}
+
object Test extends Application {
test1
test2
test3
+ test4
}