From 41e3b89c6d636164f48a2c2d8e8867201075cdae Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 10 Mar 2013 10:06:00 +0100 Subject: SI-7233 Account for aliased imports in Erasure When we discard the fiction of `scala.Any`. --- test/files/pos/t7233b.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t7233b.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t7233b.scala b/test/files/pos/t7233b.scala new file mode 100644 index 0000000000..927c7fcfd1 --- /dev/null +++ b/test/files/pos/t7233b.scala @@ -0,0 +1,8 @@ +object Test { + // crash + def foo(a: Any) = { import a.{toString => toS}; toS } + + // okay + def ok1(a: String) = { import a.{isInstanceOf => iio}; iio[String] } + def ok2(a: Int) = { import a.{toInt => ti}; ti } +} -- cgit v1.2.3