From 78488cba57f5bfdf3181a8e6df5be2b290ebf564 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 9 Oct 2015 14:35:44 +0200 Subject: Always fully define the types of lifted expressions Fixes #822 --- tests/pos/pickleinf.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos/pickleinf.scala (limited to 'tests/pos') 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) + } +} -- cgit v1.2.3