File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1460,12 +1460,12 @@ trait Checking {
1460
1460
|CanThrow capabilities can only be generated $req. """ ,
1461
1461
pat.srcPos)
1462
1462
1463
- /** Check that tree does not define a context fucntion type */
1463
+ /** Check that tree does not define a context function type */
1464
1464
def checkNoContextFunctionType (tree : Tree )(using Context ): Unit =
1465
1465
def recur (tp : Type ): Unit = tp.dealias match
1466
1466
case tp : HKTypeLambda => recur(tp.resType)
1467
1467
case tp if defn.isContextFunctionType(tp) =>
1468
- report.error(em " context functon type cannot have opaque aliases " , tree.srcPos)
1468
+ report.error(em " context function type cannot have opaque aliases " , tree.srcPos)
1469
1469
case _ =>
1470
1470
recur(tree.tpe)
1471
1471
You can’t perform that action at this time.
0 commit comments