Skip to content

Commit 34ae62f

Browse files
committed
Fix typos
1 parent a58e89a commit 34ae62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,12 +1460,12 @@ trait Checking {
14601460
|CanThrow capabilities can only be generated $req.""",
14611461
pat.srcPos)
14621462

1463-
/** Check that tree does not define a context fucntion type */
1463+
/** Check that tree does not define a context function type */
14641464
def checkNoContextFunctionType(tree: Tree)(using Context): Unit =
14651465
def recur(tp: Type): Unit = tp.dealias match
14661466
case tp: HKTypeLambda => recur(tp.resType)
14671467
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)
14691469
case _ =>
14701470
recur(tree.tpe)
14711471

0 commit comments

Comments
 (0)