aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-10-19 18:08:03 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-10-19 18:08:03 +0200
commit78d769004bdcd152f9f4816bb5cf699aeeb73ff3 (patch)
treea67f717ffda0ec6e42b28b1be70ba9be7060e867 /tests
parent9ede7d003926fc46dd9620876c82b33ca9526850 (diff)
parent78488cba57f5bfdf3181a8e6df5be2b290ebf564 (diff)
downloaddotty-78d769004bdcd152f9f4816bb5cf699aeeb73ff3.tar.gz
dotty-78d769004bdcd152f9f4816bb5cf699aeeb73ff3.tar.bz2
dotty-78d769004bdcd152f9f4816bb5cf699aeeb73ff3.zip
Merge pull request #823 from smarter/fix/lifting-and-inference
Always fully define the types of lifted expressions
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/pickleinf.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/pickleinf.scala b/tests/pos/pickleinf.scala
new file mode 100644
index 000000000..9132f1a17
--- /dev/null
+++ b/tests/pos/pickleinf.scala
@@ -0,0 +1,9 @@
+class Bar[N] {
+ def bar(name: N, dummy: Int = 42): N = name
+}
+
+object Test {
+ def test(): Unit = {
+ (new Bar).bar(10)
+ }
+}