diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-10-24 21:51:27 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-25 15:10:10 +0100 |
commit | ae0e1263c22e6b94b112a2b4b00a49853f0e3d58 (patch) | |
tree | 5048a614b5ca583e142236b3e3efe6d3eab49003 /tests | |
parent | ecf62cf18b43b5a39e973bdc8087675a24337ce0 (diff) | |
download | dotty-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.scala | 12 |
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) + } +} + |