summaryrefslogtreecommitdiff
path: root/test/files/run/t6572/foo_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6572/foo_2.scala')
-rw-r--r--test/files/run/t6572/foo_2.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t6572/foo_2.scala b/test/files/run/t6572/foo_2.scala
new file mode 100644
index 0000000000..465f0b7c3c
--- /dev/null
+++ b/test/files/run/t6572/foo_2.scala
@@ -0,0 +1,17 @@
+//package foo
+
+import bar._
+
+class FooProvider extends IntProvider {
+ def int = 3
+}
+
+class Wrapper(users: DefaultIntBase[FooProvider]) {
+ final def user(userId: Int) = users.get(userId)
+}
+
+object Test {
+ def main(args: Array[String]) {
+ new Wrapper(new DefaultIntBase)
+ }
+} \ No newline at end of file