diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-10-19 18:08:03 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-10-19 18:08:03 +0200 |
commit | 78d769004bdcd152f9f4816bb5cf699aeeb73ff3 (patch) | |
tree | a67f717ffda0ec6e42b28b1be70ba9be7060e867 /tests | |
parent | 9ede7d003926fc46dd9620876c82b33ca9526850 (diff) | |
parent | 78488cba57f5bfdf3181a8e6df5be2b290ebf564 (diff) | |
download | dotty-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.scala | 9 |
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) + } +} |