aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala4
-rw-r--r--src/dotty/tools/io/ClassPath.scala2
-rw-r--r--test/dotc/tests.scala4
3 files changed, 7 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index 400c43e3c..1ee34e4be 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -448,7 +448,9 @@ trait Applications extends Compatibility { self: Typer =>
// try with prototype `[].name(args)`, this might succeed by inserting an
// implicit conversion around []. (an example is Int + BigInt).
tryEither { implicit ctx =>
- val qual1 = adaptInterpolated(qual, new SelectionProto(name, proto, NoViewsAllowed))
+ val simpleFunProto = new FunProto(tree.args, WildcardType, this) // drop result type, because views are disabled
+ val selProto = new SelectionProto(name, simpleFunProto, NoViewsAllowed)
+ val qual1 = adaptInterpolated(qual, selProto)
if (qual eq qual1) ctx.error("no progress")
if (ctx.reporter.hasErrors) qual1
else
diff --git a/src/dotty/tools/io/ClassPath.scala b/src/dotty/tools/io/ClassPath.scala
index 9e44cc15c..749fae847 100644
--- a/src/dotty/tools/io/ClassPath.scala
+++ b/src/dotty/tools/io/ClassPath.scala
@@ -389,7 +389,7 @@ extends ClassPath {
}
new MergedClassPath(newEntries, context)
}
- def show() {
+ def show(): Unit = {
println("ClassPath %s has %d entries and results in:\n".format(name, entries.size))
asClasspathString split ':' foreach (x => println(" " + x))
}
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 0e43faf5a..fe31f1e53 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -54,7 +54,9 @@ class tests extends CompilerTest {
@Test def dotc_reporting = compileDir(dotcDir + "tools/dotc/reporting")
@Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer")
@Test def dotc_util = compileDir(dotcDir + "tools/dotc/util")
+ @Test def tools_io = compileDir(dotcDir + "tools/io")
+ @Test def tools = compileDir(dotcDir + "tools")
-// @Test def dotc_compilercommand = compileFile(dotcDir + "tools/dotc/config/", "CompilerCommand")
+ @Test def dotc_compilercommand = compileFile(dotcDir + "tools/dotc/config/", "CompilerCommand")
} \ No newline at end of file