aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-10-09 14:35:44 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-10-19 18:07:18 +0200
commit78488cba57f5bfdf3181a8e6df5be2b290ebf564 (patch)
tree7775be08080affb590400d0fcb3ba87f4d2ab9a3 /tests/pos
parentbea9aa282c7a929fdab815b3f34d2d697ade7bca (diff)
downloaddotty-78488cba57f5bfdf3181a8e6df5be2b290ebf564.tar.gz
dotty-78488cba57f5bfdf3181a8e6df5be2b290ebf564.tar.bz2
dotty-78488cba57f5bfdf3181a8e6df5be2b290ebf564.zip
Always fully define the types of lifted expressions
Fixes #822
Diffstat (limited to 'tests/pos')
-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)
+ }
+}