Skip to content

Commit c1d5be4

Browse files
committed
Fix nit on comment indentation
1 parent 5a4a0d0 commit c1d5be4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

compiler/src/dotty/tools/dotc/transform/init/Checking.scala

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ object Checking {
257257
}
258258

259259
/**
260-
* Check if we can just directly promote a potential.
261-
* A potential can be (currently) directly promoted if and only if:
262-
* - `pot == this` and all fields of this are initialized, or
263-
* - `pot == Warm(C, outer)` where `outer` can be directly promoted.
264-
*/
260+
* Check if we can just directly promote a potential.
261+
* A potential can be (currently) directly promoted if and only if:
262+
* - `pot == this` and all fields of this are initialized, or
263+
* - `pot == Warm(C, outer)` where `outer` can be directly promoted.
264+
*/
265265
private def canDirectlyPromote(pot: Potential, visited: Set[Potential] = Set.empty)(using state: State): Boolean = trace("checking direct promotion of " + pot.show, init) {
266266
if (state.safePromoted.contains(pot)) true
267267
// If this potential's promotion depends on itself, we cannot directly promote it.
@@ -285,19 +285,19 @@ object Checking {
285285
}
286286

287287
/**
288-
* Check the Promotion of a Warm object, according to "Rule 2":
289-
*
290-
* Rule 2: Promote(pot)
291-
*
292-
* for all concrete methods `m` of D
293-
* pot.m!, Promote(pot.m)
294-
*
295-
* for all concrete fields `f` of D
296-
* Promote(pot.f)
297-
*
298-
* for all inner classes `F` of D
299-
* Warm[F, pot].init!, Promote(Warm[F, pot])
300-
*/
288+
* Check the Promotion of a Warm object, according to "Rule 2":
289+
*
290+
* Rule 2: Promote(pot)
291+
*
292+
* for all concrete methods `m` of D
293+
* pot.m!, Promote(pot.m)
294+
*
295+
* for all concrete fields `f` of D
296+
* Promote(pot.f)
297+
*
298+
* for all inner classes `F` of D
299+
* Warm[F, pot].init!, Promote(Warm[F, pot])
300+
*/
301301
private def checkPromoteWarm(warm: Warm, eff: Effect)(using state: State): Errors =
302302
val Warm(cls, outer) = warm
303303
val source = eff.source

0 commit comments

Comments
 (0)