diff options
author | Martin Odersky <odersky@gmail.com> | 2015-08-09 15:22:42 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-09-18 17:39:36 +0200 |
commit | 5e48d1c25e9fe1f5c6b962a6edb209e587150b86 (patch) | |
tree | 9a43ccfb846c794b84610da09fd8456bb34f283c /tests/pos | |
parent | 493fbbdd6cd0ca7fecd7e34f963563fe58e1f877 (diff) | |
download | dotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.tar.gz dotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.tar.bz2 dotty-5e48d1c25e9fe1f5c6b962a6edb209e587150b86.zip |
Add test case
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i739.scala | 10 |
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) + } +} |