Skip to content

Commit d975244

Browse files
bishaboshasjrd
andauthored
Update _overviews/scala3-migration/incompat-type-inference.md
Co-authored-by: Sébastien Doeraene <[email protected]>
1 parent 408e8bb commit d975244

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_overviews/scala3-migration/incompat-type-inference.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ val foo = new {
8181
{% endtab %}
8282
{% endtabs %}
8383

84-
However the Scala 3 compiler does not infer structural types by default, and so infers type `Object` for `foo`, rather than `{ def bar: Unit }` as in Scala 2.13, so the following structural selection fail to compile:
84+
However the Scala 3 compiler does not infer structural types by default.
85+
It infers the type `Object` for `foo` instead of `{ def bar: Unit }`.
86+
Therefore, the following structural selection fails to compile:
8587

8688
{% tabs use_structural %}
8789
{% tab 'Scala 3 Only' %}

0 commit comments

Comments
 (0)