Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 880fc84

Browse files
committed
address reviews
1 parent b32c08a commit 880fc84

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
16901690
val tree =
16911691
if (mt.isResultDependent) {
16921692
if (formals.length != defaultArity)
1693-
untpd.TypeTree()
1693+
typeTree(WildcardType)
16941694
else
16951695
untpd.InLambdaTypeTree(isResult = true, (_, syms) => restpe.substParams(mt, syms.map(_.termRef)))
16961696
} else

tests/neg/i123577.check

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- [E007] Type Mismatch Error: tests/neg/i123577.scala:11:4 ------------------------------------------------------------
2+
11 | (msg: String) => ??? // error
3+
| ^^^^^^^^^^^^^^^^^^^^
4+
| Found: String => Nothing
5+
| Required: MillRpcChannel
6+
|
7+
| longer explanation available when compiling with `-explain`

0 commit comments

Comments
 (0)