From ed63344a2dae7731c01737102fbe12b7ad10ba77 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Thu, 14 Jul 2016 13:23:44 -0700 Subject: SI-2458 Make spec example live test Synchronize the live test with the spec update, which is trivial. Also add a neg test showing that an imported name remains ambiguous even if it resolves to the definition in scope with which it is ambiguous. --- test/files/neg/ambiguous-same.check | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/neg/ambiguous-same.check (limited to 'test/files/neg/ambiguous-same.check') diff --git a/test/files/neg/ambiguous-same.check b/test/files/neg/ambiguous-same.check new file mode 100644 index 0000000000..58f4e60ece --- /dev/null +++ b/test/files/neg/ambiguous-same.check @@ -0,0 +1,6 @@ +ambiguous-same.scala:13: error: reference to x is ambiguous; +it is both defined in object X and imported subsequently by +import X.x + x + ^ +one error found -- cgit v1.2.3