Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bb4ae9c

Browse files
committed
Minor improvements
1 parent d27cf2d commit bb4ae9c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎compiler/src/dotty/tools/dotc/cc/Capability.scala‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ object Capabilities:
784784
abstract class CapMap extends BiTypeMap:
785785
override def mapOver(t: Type): Type = t match
786786
case t @ FunctionOrMethod(args, res) if variance > 0 && !t.isAliasFun =>
787-
t // `t` should be mapped in this case by a different call to `mapCap`.
787+
t // `t` should be mapped in this case by a different call to `toResult`. See [[toResultInResults]].
788788
case t: (LazyRef | TypeVar) =>
789789
mapConserveSuper(t)
790790
case _ =>
@@ -882,4 +882,4 @@ object Capabilities:
882882
case tp1 => tp1
883883
end toResultInResults
884884

885-
end Capabilities
885+
end Capabilities

‎compiler/src/dotty/tools/dotc/cc/Setup.scala‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import reporting.Message
1818
import printing.{Printer, Texts}, Texts.{Text, Str}
1919
import collection.mutable
2020
import CCState.*
21-
import dotty.tools.dotc.util.NoSourcePosition
2221
import CheckCaptures.CheckerAPI
2322
import NamerOps.methodType
2423
import NameKinds.{CanThrowEvidenceName, TryOwnerName}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /