Skip to content

Commit 7d31ef2

Browse files
liufengyunolhotak
andauthored
Update code comment
Co-authored-by: Ondřej Lhoták <[email protected]>
1 parent 5f6fc55 commit 7d31ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ object Semantic:
12351235
cases(thisTp, thisV, klass)
12361236

12371237
case AndType(thisTp: ThisType, _) =>
1238-
// This type annotation will generate an intersection type for `this`.
1238+
// Self-type annotation will generate an intersection type for `this`.
12391239
// See examples/i17997.scala
12401240
cases(thisTp, thisV, klass)
12411241

0 commit comments

Comments
 (0)