summaryrefslogtreecommitdiff
path: root/test/files/pos/depmet_1_pos.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/depmet_1_pos.scala')
-rw-r--r--test/files/pos/depmet_1_pos.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/depmet_1_pos.scala b/test/files/pos/depmet_1_pos.scala
new file mode 100644
index 0000000000..166e991817
--- /dev/null
+++ b/test/files/pos/depmet_1_pos.scala
@@ -0,0 +1,6 @@
+object Test {
+ def precise(x: String)(y: x.type): x.type = y
+ val foo = "foo"
+ val fun : foo.type => foo.type = precise(foo)
+ val bar : foo.type = precise(foo)(foo)
+} \ No newline at end of file