From 4d1213579885144ebb9653007e64065ff4a62e2e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 2 Feb 2014 13:29:55 +0100 Subject: Fix checking for disabled root imports Needs to be done always when hitting a wildcard import, not just when something was found --- tests/neg/rootImplicits.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/neg/rootImplicits.scala (limited to 'tests/neg/rootImplicits.scala') diff --git a/tests/neg/rootImplicits.scala b/tests/neg/rootImplicits.scala new file mode 100644 index 000000000..4b833c503 --- /dev/null +++ b/tests/neg/rootImplicits.scala @@ -0,0 +1,11 @@ +package test + +import dotty._ +import Predef.{any2stringadd => _, _} + +object rootImplicits { + + println((new Object()) + "abc") // error: `+` is not member of Object + println(any2stringadd(new Object()) + "abc") // error: not found: any2stringadd + +} -- cgit v1.2.3