aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-10-24 21:51:27 +0200
committerMartin Odersky <odersky@gmail.com>2015-10-25 15:10:10 +0100
commitae0e1263c22e6b94b112a2b4b00a49853f0e3d58 (patch)
tree5048a614b5ca583e142236b3e3efe6d3eab49003 /tests
parentecf62cf18b43b5a39e973bdc8087675a24337ce0 (diff)
downloaddotty-ae0e1263c22e6b94b112a2b4b00a49853f0e3d58.tar.gz
dotty-ae0e1263c22e6b94b112a2b4b00a49853f0e3d58.tar.bz2
dotty-ae0e1263c22e6b94b112a2b4b00a49853f0e3d58.zip
Less eager tvar interpolation: wait until method calls are fully applied
Fix #738
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/tparam_inf.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/tparam_inf.scala b/tests/pos/tparam_inf.scala
new file mode 100644
index 000000000..7b0ee0b36
--- /dev/null
+++ b/tests/pos/tparam_inf.scala
@@ -0,0 +1,12 @@
+object Test {
+ def foo1[T](x: T)(implicit ev: T): Nothing = ???
+ def foo2[T](x: T)(implicit ev: T): T = ???
+
+ def test: Unit = {
+ implicit val ii: Int = 42
+
+ foo1(10)
+ foo2(10)
+ }
+}
+