Skip to content

Commit

Permalink
rm comments in TypeErrors.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
doofin authored Oct 29, 2023
1 parent 7aad7ec commit 037be3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/TypeErrors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CyclicReference private (val denot: SymDenotation)(using Context) extends
// cycleSym.flags would try completing denot and would fail, but here we can use flagsUNSAFE to detect flags
// set by the parser.
val unsafeFlags = cycleSym.flagsUNSAFE
val isMethod = unsafeFlags.is(Method) // sometimes,isMethod and isConstructor can both be true!
val isMethod = unsafeFlags.is(Method)
val isVal = !isMethod && cycleSym.isTerm
val isConstructor = cycleSym.isConstructor

Expand Down

0 comments on commit 037be3f

Please sign in to comment.