summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/structural.check2
-rw-r--r--test/files/run/structural.scala23
2 files changed, 25 insertions, 0 deletions
diff --git a/test/files/run/structural.check b/test/files/run/structural.check
index 52292fcb36..be65e6a732 100644
--- a/test/files/run/structural.check
+++ b/test/files/run/structural.check
@@ -33,3 +33,5 @@
4
5
caught
+3
+2
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
}