From 85be7814f65a0ec81b4927fc2c347a06fbe11a7f Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 30 Nov 2017 14:20:37 +0100 Subject: [PATCH 1/2] Fix #3462: Add regression test --- tests/pos-from-tasty/i3462.scala | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/pos-from-tasty/i3462.scala diff --git a/tests/pos-from-tasty/i3462.scala b/tests/pos-from-tasty/i3462.scala new file mode 100644 index 000000000000..addddfa4de64 --- /dev/null +++ b/tests/pos-from-tasty/i3462.scala @@ -0,0 +1,2 @@ +package foo +class Foo(a: Int) extends AnyVal From 01dad1a6c843decd1e557147ebe1d9a933c1c7e3 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 30 Nov 2017 14:22:39 +0100 Subject: [PATCH 2/2] Fix #3607: Add regression test --- tests/pos-from-tasty/i3607.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/pos-from-tasty/i3607.scala diff --git a/tests/pos-from-tasty/i3607.scala b/tests/pos-from-tasty/i3607.scala new file mode 100644 index 000000000000..8428f208e7c1 --- /dev/null +++ b/tests/pos-from-tasty/i3607.scala @@ -0,0 +1,6 @@ +object A { implicit val x: Int = 1 } + +object Test1 { + import A.{x => y} + implicitly[Int] +}