Skip to content

Commit 5d96c60

Browse files
committed
Address review comments
1 parent 0f67180 commit 5d96c60

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

compiler/src/dotty/tools/dotc/transform/ExtensionMethods.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ object ExtensionMethods {
190190
// See the documentation of `memberSignature` to understand why `.stripPoly.ensureMethodic` is needed here.
191191
candidates filter (c => FullParameterization.memberSignature(c.info) == imeth.info.stripPoly.ensureMethodic.signature)
192192
assert(matching.nonEmpty,
193-
i"""no extension method found for
193+
i"""no extension method found for:
194194
|
195195
| $imeth:${imeth.info.show} with signature ${imeth.info.signature} in ${companion.moduleClass}
196196
|

docs/docs/internals/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: "Scala3 Syntax Summary"
3+
title: "Scala 3 Syntax Summary"
44
---
55

66
The following descriptions of Scala tokens uses literal characters `‘c’` when

docs/docs/reference/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: "Scala3 Syntax Summary"
3+
title: "Scala 3 Syntax Summary"
44
---
55

66
The following descriptions of Scala tokens uses literal characters `‘c’` when

tests/neg/i5773.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object Main {
2323
21 | println(1 appendS 2)
2424
| ^^^^^^^^^
2525
|value appendS is not a member of Int.
26-
|An extension method was tried, but could not be fully constructed
26+
|An extension method was tried, but could not be fully constructed:
2727
|
2828
| Semigroup.sumSemigroup[Any](/* ambiguous */implicitly[Numeric[Any]]).appendS()
2929
one error found

tests/pos/package-indented.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
package p:
3+
def f = 10
4+
5+
package q:
6+
def g = 20
7+
8+
def Test = p.f + q.g

0 commit comments

Comments
 (0)