From 1ed38673d4c88d573363459d316fdfe275d05025 Mon Sep 17 00:00:00 2001 From: vsalvis Date: Fri, 10 Jul 2015 17:01:35 +0200 Subject: Negtests with // error comments --- tests/neg/typedIdents/typedIdents.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/neg/typedIdents') diff --git a/tests/neg/typedIdents/typedIdents.scala b/tests/neg/typedIdents/typedIdents.scala index 4937edfe3..56acfc231 100644 --- a/tests/neg/typedIdents/typedIdents.scala +++ b/tests/neg/typedIdents/typedIdents.scala @@ -12,13 +12,13 @@ package P { // `X' bound by package clause println("L12: " + x) // `x' refers to constant `3' here locally { import Q.X._ // `x' and `y' bound by wildcard import - println("L14: " + x) // reference to `x' is ambiguous here + println("L14: " + x) // error: reference to `x' is ambiguous here import X.y // `y' bound by explicit import println("L16: " + y) // `y' refers to `Q.X.y' here locally { import P.X._ // `x' and `y' bound by wildcard import val x = "abc" // `x' bound by local definition - println("L19: " + y) // reference to `y' is ambiguous here + println("L19: " + y) // error: reference to `y' is ambiguous here println("L20: " + x) // `x' refers to string ``abc'' here } } -- cgit v1.2.3