Skip to content

Commit 3889333

Browse files
committed
Fix typo
1 parent 9b32b8a commit 3889333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ object ProtoTypes {
244244
var targ = myTypedArg(arg)
245245
if (targ == null) {
246246
if (!force && untpd.functionWithUnknownParamType(arg).isDefined)
247-
// If force = true, assume ? rather than reporting an error.
247+
// If force = false, assume ? rather than reporting an error.
248248
// That way we don't cause a "missing parameter" error in `typerFn(arg)`
249249
targ = arg.withType(WildcardType)
250250
else {
@@ -261,7 +261,7 @@ object ProtoTypes {
261261
/** The typed arguments. This takes any arguments already typed using
262262
* `typedArg` into account.
263263
* @param force if true try to typecheck arguments even if they are functions
264-
* with unknown parameter types - this will then cause a
264+
* with unknown parameter types - this will then cause a
265265
* "missing parameter type" error
266266
*/
267267
private def typedArgs(force: Boolean): List[Tree] = {

0 commit comments

Comments
 (0)