aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-08-09 15:22:42 -0700
committerMartin Odersky <odersky@gmail.com>2015-09-18 17:39:36 +0200
commit5e48d1c25e9fe1f5c6b962a6edb209e587150b86 (patch)
tree9a43ccfb846c794b84610da09fd8456bb34f283c /tests
parent493fbbdd6cd0ca7fecd7e34f963563fe58e1f877 (diff)
downloaddotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.tar.gz
dotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.tar.bz2
dotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.zip
Add test case
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i739.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/i739.scala b/tests/pos/i739.scala
new file mode 100644
index 000000000..340478f4f
--- /dev/null
+++ b/tests/pos/i739.scala
@@ -0,0 +1,10 @@
+class Foo
+
+object Test {
+ def foo[T](x: T)(implicit ev: T): T = ???
+
+ def test: Unit = {
+ implicit val evidence: Foo = new Foo
+ foo(new Foo)
+ }
+}