From 11d8e2c4870d13be7b4a651495aae8fb8946d60f Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Wed, 6 Feb 2008 18:02:39 +0000 Subject: Partial fix to #397. --- test/files/run/structural.scala | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/files/run/structural.scala') 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 } -- cgit v1.2.3