Skip to content

Commit da2e086

Browse files
authored
Merge pull request #2391 from scalacenter/remove-scala3-reference
Remove source files in _scala3-reference/
2 parents c247790 + 763d518 commit da2e086

File tree

152 files changed

+78
-13949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+78
-13949
lines changed

_config.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ collections:
4545
getting-started:
4646
output: true
4747
permalink: /:collection/:path.html
48-
scala3-reference: # not really a collection, but this is the only way I found to be able to generate the navigation bar on the right
49-
output: true
5048
ja: # Japanese translations
5149
output: true
5250
permalink: /:collection/:path.html
@@ -152,16 +150,6 @@ defaults:
152150
overview-name: "Scaladoc"
153151
layout: multipage-overview
154152
permalink: "/scala3/guides/scaladoc/:title.html"
155-
-
156-
scope:
157-
path: "_scala3-reference"
158-
values:
159-
scala3: true
160-
partof: scala3-reference
161-
type: section
162-
overview-name: "Scala 3 Language Reference"
163-
layout: multipage-overview
164-
permalink: "/scala3/reference/:path.html"
165153
-
166154
scope:
167155
path: "scala3"
@@ -172,7 +160,7 @@ defaults:
172160
highlighter: rouge
173161
permalink: /:categories/:title.html:output_ext
174162
baseurl:
175-
scala3ref: "/scala3/reference"
163+
scala3ref: "https://docs.scala-lang.org/scala3/reference"
176164
exclude: ["vendor"]
177165
plugins:
178166
- jekyll-redirect-from

_data/scala3-doc-nav-header.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- title: Guides
1818
url: '/scala3/guides.html'
1919
- title: Language Specification
20-
url: "/scala3/reference/overview.html"
20+
url: "https://docs.scala-lang.org/scala3/reference"
2121
- title: Scala Library API
2222
url: "https://scala-lang.org/api/3.x/"
2323
- title: Contributing Guide

_ja/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ scala3-sections:
4040
- title: "Language Reference"
4141
description: "Scala 3 の言語仕様"
4242
icon: "fa fa-book"
43-
link: /scala3/reference/overview.html
43+
link: https://docs.scala-lang.org/scala3/reference
4444

4545
scala2-sections:
4646

_ja/scala3/contribute-to-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Scala 3 コンパイラとライブラリへの貢献と内部に関する包括
5353
- [Issues](https://github.com/scala/docs.scala-lang/issues)
5454

5555
## Scala 3 Language Reference
56-
The [Dotty reference](/scala3/reference/overview.html) は Scala 3 になる予定である。これにはさまざまな言語仕様に関する公式のプレゼンテーションや技術的情報が含まれている。
56+
The [Dotty reference]({{ site.scala3ref }}/overview.html) は Scala 3 になる予定である。これにはさまざまな言語仕様に関する公式のプレゼンテーションや技術的情報が含まれている。
5757

58-
- [Sources](https://github.com/lampepfl/dotty/tree/master/docs/docs/reference)
58+
- [Sources](https://github.com/lampepfl/dotty/tree/main/docs/_docs)
5959
- [Issues](https://github.com/lampepfl/dotty/issues)
6060

6161

_ja/scala3/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ sections:
4040
- title: "Language Reference"
4141
description: "Scala 3 の言語仕様"
4242
icon: "fa fa-book"
43-
link: /scala3/reference/overview.html
43+
link: https://docs.scala-lang.org/scala3/reference
4444
---

_ja/scala3/new-in-scala3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Scala 3 のメタプログラミングについてもっと知りたいかたは
102102
[migration]: {% link _overviews/scala3-migration/compatibility-intro.md %}
103103
[contribution]: {% link _overviews/scala3-contribution/contribution-intro.md %}
104104

105-
[implicits]: {{ site.scala3ref }}/contextual.html
105+
[implicits]: {{ site.scala3ref }}/contextual
106106
[contextual-using]: {{ site.scala3ref }}/contextual/using-clauses.html
107107
[contextual-givens]: {{ site.scala3ref }}/contextual/givens.html
108108
[contextual-extension]: {{ site.scala3ref }}/contextual/extension-methods.html
@@ -120,7 +120,7 @@ Scala 3 のメタプログラミングについてもっと知りたいかたは
120120
[meta-quotes]: {% link _overviews/scala3-macros/tutorial/quotes.md %}
121121
[meta-reflection]: {% link _overviews/scala3-macros/tutorial/reflection.md %}
122122

123-
[oo-explicit-null]: {{ site.scala3ref }}/other-new-features/explicit-nulls.html
123+
[oo-explicit-null]: {{ site.scala3ref }}/experimental/explicit-nulls.html
124124
[oo-safe-init]: {{ site.scala3ref }}/other-new-features/safe-initialization.html
125125
[oo-trait-parameters]: {{ site.scala3ref }}/other-new-features/trait-parameters.html
126126
[oo-open]: {{ site.scala3ref }}/other-new-features/open-classes.html

_overviews/FAQ/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ and a [summary with practical differences](https://tpolecat.github.io/2014/06/09
216216

217217
Note that in **Scala 3** the differences are fewer;
218218
for example, they will be able to
219-
[accept implicit parameters](/scala3/reference/contextual/context-functions.html)
220-
as well as [type parameters](/scala3/reference/new-types/polymorphic-function-types.html).
219+
[accept implicit parameters]({{ site.scala3ref }}/contextual/context-functions.html)
220+
as well as [type parameters]({{ site.scala3ref }}/new-types/polymorphic-function-types.html).
221221

222222
Nevertheless, it is still recommended to use methods most of the time,
223223
unless you absolutely need a function. And, thanks to

_overviews/contribute/add-guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,4 @@ above. Here is an example using the various modifiers.
257257
[why-contribute]: {% link contribute.md %}
258258
[home]: {% link index.md %}
259259
[overviews-index]: {% link _overviews/index.md %}
260-
[scala-3-reference]: https://docs.scala-lang.org/scala3/reference/overview.html
260+
[scala-3-reference]: {{ site.scala3ref }}

_overviews/scala3-book/ca-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ A few more advanced topics aren’t covered here, including:
2727
Those topics are discussed in detail in the [Reference documentation][ref].
2828

2929

30-
[ref]: {{ site.scala3ref }}/contextual.html
30+
[ref]: {{ site.scala3ref }}/contextual

_overviews/scala3-book/first-look-at-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ Alternatives to `null` are discussed in the [Functional Programming chapter][fp]
276276
[interpolation]: {% link _overviews/core/string-interpolation.md %}
277277
[fp]: {% link _overviews/scala3-book/fp-intro.md %}
278278
[option-api]: https://scala-lang.org/api/3.x/scala/Option.html
279-
[safe-null]: {{ site.scala3ref }}/other-new-features/explicit-nulls.html
279+
[safe-null]: {{ site.scala3ref }}/experimental/explicit-nulls.html

_overviews/scala3-book/scala-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ As Heather Miller states, Scala is considered to be a [strong, statically-typed
137137
- You can refactor your code with confidence
138138
- Method type declarations tell readers what the method does, and help serve as documentation
139139
- Scalability and maintainability: types help ensure correctness across arbitrarily large applications and development teams
140-
- Strong typing in combination with excellent inference enables mechanisms like [contextual abstraction]({{ site.scala3ref }}/contextual.html) that allows you to omit boilerplate code. Often, this boilerplate code can be inferred by the compiler, based on type definitions and a given context.
140+
- Strong typing in combination with excellent inference enables mechanisms like [contextual abstraction]({{ site.scala3ref }}/contextual) that allows you to omit boilerplate code. Often, this boilerplate code can be inferred by the compiler, based on type definitions and a given context.
141141

142142
{% comment %}
143143
In that list:
@@ -242,7 +242,7 @@ In Scala, a context parameter directly leads to an inferred argument term that c
242242
Use cases for this concept include implementing [type classes]({% link _overviews/scala3-book/ca-type-classes.md %}), establishing context, dependency injection, expressing capabilities, computing new types, and proving relationships between them.
243243

244244
Scala 3 makes this process more clear than ever before.
245-
Read about contextual abstractions in the [Reference documentation]({{ site.scala3ref }}/contextual.html).
245+
Read about contextual abstractions in the [Reference documentation]({{ site.scala3ref }}/contextual).
246246

247247

248248
### Client & server

_overviews/scala3-book/why-scala-3.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ Hopefully you’ll discover more great Scala features as you use the language.
427427
[java]: {% link _overviews/scala3-book/interacting-with-java.md %}
428428
[given]: {% link _overviews/scala3-book/ca-given-using-clauses.md %}
429429
[contextual]: {% link _overviews/scala3-book/ca-contextual-abstractions-intro.md %}
430-
[reference]: {{ site.scala3ref }}/overview.html
431-
[dropped]: https://docs.scala-lang.org/scala3/reference/dropped-features.html
432-
[changed]: https://docs.scala-lang.org/scala3/reference/changed-features.html
433-
[added]: https://docs.scala-lang.org/scala3/reference/other-new-features.html
430+
[reference]: {{ site.scala3ref }}
431+
[dropped]: {{ site.scala3ref }}/dropped-features
432+
[changed]: {{ site.scala3ref }}/changed-features
433+
[added]:{{ site.scala3ref }}/other-new-features
434434

435435
[union-types]: {% link _overviews/scala3-book/types-union.md %}
436436
[opaque-types]: {% link _overviews/scala3-book/types-opaque-types.md %}

_overviews/scala3-contribution/arch-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ tools // contains helpers and the `scala` generic runner
8888
[dotty.tools]: https://github.com/lampepfl/dotty/tree/master/compiler/src/dotty/tools
8989
[ScalaSettings]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
9090
[phase-categories]: {% link _overviews/scala3-contribution/arch-phases.md %}#phase-categories
91-
[syntax]: {% link _scala3-reference/syntax.md %}
91+
[syntax]: {{ site.scala3ref }}/syntax.html
9292
[Main]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Main.scala
9393
[Driver]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Driver.scala
9494
[Compiler]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Compiler.scala

_overviews/scala3-contribution/arch-phases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ These map the transformed trees to Java classfiles or SJSIR files.
110110
[patternMatcher]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
111111
[erasure]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Erasure.scala
112112
[Mirror]: https://github.com/lampepfl/dotty/blob/master/library/src/scala/deriving/Mirror.scala
113-
[PCP]: {% link _scala3-reference/metaprogramming/macros.md %}#the-phase-consistency-principle
113+
[PCP]: {{ site.scala3ref }}/metaprogramming/macros.html#the-phase-consistency-principle

_overviews/scala3-contribution/contribution-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on [GitHub](https://github.com/scala/docs.scala-lang/tree/main/_overviews/scala3
2222

2323
`dotc` is built with Scala 3, fully utilising its [new features](/scala3/new-in-scala3.html).
2424
It is recommended that you first have some familiarity with Scala 3
25-
to get the most out of this guide. You can learn more in the [language reference](/scala3/reference/overview.html).
25+
to get the most out of this guide. You can learn more in the [language reference]({{ site.scala3ref}}).
2626

2727
Many code snippets in this guide make use of shell commands (a line beginning with `$`), and in this case
2828
a `bash` compatible shell is assumed. You may have to look up how to translate commands to your shell.

_overviews/scala3-macros/other-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ num: 9
99
* [Migration status][migration-status]
1010

1111
## Dotty documentation
12-
- [Dotty Documentation](/scala3/reference/metaprogramming.html)
12+
- [Dotty Documentation]({{ site.scala3ref }}/metaprogramming)
1313
- [Macros: The Plan For Scala 3](https://www.scala-lang.org/blog/2018/04/30/in-a-nutshell.html)
1414
- [Examples](https://github.com/lampepfl/dotty-macro-examples) - a repository with small, self-contained examples of various tasks done with Dotty macros.
1515

_overviews/scala3-macros/tutorial/inline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def powerCode(x: Expr[Double], n: Expr[Int])(using Quotes): Expr[Double] = ...
499499
```
500500

501501

502-
[soft-modifier]: {% link _scala3-reference/soft-modifier.md %}
502+
[soft-modifier]: {{ site.scala3ref }}/soft-modifier.html
503503

504504
[contributing]: {% link scala3/contribute-to-docs.md %}
505505
[best-practices]: {% link _overviews/scala3-macros/best-practices.md %}

_overviews/scala3-migration/compatibility-classpath.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,30 @@ The second piece of good news is that the Scala 2.13 TASTy reader, which enables
6363
### Supported Features
6464

6565
The TASTy reader supports all the traditional language features as well as the following brand-new features:
66-
- [Enumerations]({% link _scala3-reference/enums/enums.md %})
67-
- [Intersection Types]({% link _scala3-reference/new-types/intersection-types.md %})
68-
- [Opaque Type Aliases]({% link _scala3-reference/other-new-features/opaques.md %})
69-
- [Type Lambdas]({% link _scala3-reference/new-types/type-lambdas.md %})
70-
- [Contextual Abstractions]({% link _scala3-reference/contextual.md %}) (new syntax)
71-
- [Open Classes]({% link _scala3-reference/other-new-features/open-classes.md %}) (and inheritance of super traits)
72-
- [Export Clauses]({% link _scala3-reference/other-new-features/export.md %})
66+
- [Enumerations]({{ site.scala3ref }}/enums/enums.html)
67+
- [Intersection Types]({{ site.scala3ref }}/new-types/intersection-types.html)
68+
- [Opaque Type Aliases]({{ site.scala3ref }}/other-new-features/opaques.html)
69+
- [Type Lambdas]({{ site.scala3ref }}/new-types/type-lambdas.html)
70+
- [Contextual Abstractions]({{ site.scala3ref }}/contextual) (new syntax)
71+
- [Open Classes]({{ site.scala3ref }}/other-new-features/open-classes.html) (and inheritance of super traits)
72+
- [Export Clauses]({{ site.scala3ref }}/other-new-features/export.html)
7373

7474
We have limited support on:
75-
- [Top-Level Definitions]({% link _scala3-reference/dropped-features/package-objects.md %})
76-
- [Extension Methods]({% link _scala3-reference/contextual/extension-methods.md %})
75+
- [Top-Level Definitions]({{ site.scala3ref }}/dropped-features/package-objects.html)
76+
- [Extension Methods]({{ site.scala3ref }}/contextual/extension-methods.html)
7777

7878
More exotic features are not supported:
79-
- [Context Functions]({% link _scala3-reference/contextual/context-functions.md %})
80-
- [Polymorphic Function Types]({% link _scala3-reference/new-types/polymorphic-function-types.md %})
81-
- [Trait Parameters]({% link _scala3-reference/other-new-features/trait-parameters.md %})
79+
- [Context Functions]({{ site.scala3ref }}/contextual/context-functions.html)
80+
- [Polymorphic Function Types]({{ site.scala3ref }}/new-types/polymorphic-function-types.html)
81+
- [Trait Parameters]({{ site.scala3ref }}/other-new-features/trait-parameters.html)
8282
- `@static` Annotation
8383
- `@alpha` Annotation
84-
- [Functions and Tuples larger than 22 parameters]({% link _scala3-reference/dropped-features/limit22.md %})
85-
- [Match Types]({% link _scala3-reference/new-types/match-types.md %})
86-
- [Union Types]({% link _scala3-reference/new-types/union-types.md %})
87-
- [Multiversal Equality]({% link _scala3-reference/contextual/multiversal-equality.md %}) (unless explicit)
88-
- [Inline]({% link _scala3-reference/metaprogramming/inline.md %}) (including Scala 3 macros)
89-
- [Kind Polymorphism]({% link _scala3-reference/other-new-features/kind-polymorphism.md %}) (the `scala.AnyKind` upper bound)
84+
- [Functions and Tuples larger than 22 parameters]({{ site.scala3ref }}/dropped-features/limit22.html)
85+
- [Match Types]({{ site.scala3ref }}/new-types/match-types.html)
86+
- [Union Types]({{ site.scala3ref }}/new-types/union-types.html)
87+
- [Multiversal Equality]({{ site.scala3ref }}/contextual/multiversal-equality.html) (unless explicit)
88+
- [Inline]({{ site.scala3ref }}/metaprogramming/inline.html) (including Scala 3 macros)
89+
- [Kind Polymorphism]({{ site.scala3ref }}/other-new-features/kind-polymorphism.html) (the `scala.AnyKind` upper bound)
9090

9191
### A Scala 2.13 module can depend on a Scala 3 artifact
9292

_overviews/scala3-migration/compatibility-metaprogramming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Before getting deep into reimplementing a macro you should ask yourself:
5656
- Can I use `inline` and the `scala.compiletime` operations to reimplement my logic?
5757
- Can I use the simpler and safer expression based macros?
5858
- Do I really need to access the AST?
59-
- Can I use a [match type](/scala3/reference/new-types/match-types.html) as return type?
59+
- Can I use a [match type]({{ site.scala3ref }}/new-types/match-types.html) as return type?
6060

6161
You can learn all the new metaprogramming concepts by reading the [Macro Tutorial][scala3-macros].
6262

_overviews/scala3-migration/incompat-contextual-abstractions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ previous-page: incompat-dropped-features
77
next-page: incompat-other-changes
88
---
99

10-
The redesign of [contextual abstractions]({% link _scala3-reference/contextual.md %}) brings some incompatibilities.
10+
The redesign of [contextual abstractions]({{ site.scala3ref }}/contextual) brings some incompatibilities.
1111

1212
|Incompatibility|Scala 2.13|Scala 3 Migration Rewrite|Scalafix Rule|Runtime Incompatibiltiy|
1313
|--- |--- |--- |--- |--- |

_overviews/scala3-migration/incompat-dropped-features.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You are recommended, as a second step, to replace every use of `Symbol` with a p
4747

4848
## `do`-`while` construct
4949

50-
The `do` keyword has acquired a different meaning in the [New Control Syntax]({% link _scala3-reference/other-new-features/control-syntax.md %}).
50+
The `do` keyword has acquired a different meaning in the [New Control Syntax]({{ site.scala3ref }}/other-new-features/control-syntax.html).
5151

5252
To avoid confusion, the traditional `do <body> while (<cond>)` construct is dropped.
5353
It is recommended to use the equivalent `while ({ <body>; <cond> }) ()` that can be cross-compiled, or the new Scala 3 syntax `while { <body>; <cond> } do ()`.
@@ -94,11 +94,11 @@ object Hello {
9494
+println(Hello.message())
9595
{% endhighlight %}
9696

97-
Auto-application is covered in detail in [this page](/scala3/reference/dropped-features/auto-apply.html) of the Scala 3 reference documentation.
97+
Auto-application is covered in detail in [this page]({{ site.scala3ref }}/dropped-features/auto-apply.html) of the Scala 3 reference documentation.
9898

9999
## Value eta-expansion
100100

101-
Scala 3 introduces [Automatic Eta-Expansion](/scala3/reference/changed-features/eta-expansion-spec.html) which will deprecate the method to value syntax `m _`.
101+
Scala 3 introduces [Automatic Eta-Expansion]({{ site.scala3ref }}/changed-features/eta-expansion-spec.html) which will deprecate the method to value syntax `m _`.
102102
Furthermore Scala 3 does not allow eta-expansion of values to nullary functions anymore.
103103

104104
Thus, this piece of code is invalid in Scala 3:
@@ -138,7 +138,7 @@ This rewrite can be applied by the `fix.scala213.Any2StringAdd` Scalafix rule in
138138
## Early Initializer
139139

140140
Early initializers are deprecated in Scala 2.13 and dropped in Scala 3.
141-
They were rarely used, and mostly to compensate for the lack of [Trait parameters](/scala3/reference/other-new-features/trait-parameters.html) which are now supported in Scala 3.
141+
They were rarely used, and mostly to compensate for the lack of [Trait parameters]({{ site.scala3ref }}/other-new-features/trait-parameters.html) which are now supported in Scala 3.
142142

143143
That is why the following piece of code does not compile anymore.
144144

@@ -198,7 +198,7 @@ class Fizz private (val name: String) extends Bar {
198198

199199
## Existential Type
200200

201-
Existential type is a [dropped feature](/scala3/reference/dropped-features/existential-types.html), which makes the following code invalid.
201+
Existential type is a [dropped feature]({{ site.scala3ref }}/dropped-features/existential-types.html), which makes the following code invalid.
202202

203203
```scala
204204
def foo: List[Class[T]] forSome { type T } // Error: Existential types are no longer supported

_overviews/scala3-migration/incompat-other-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fooCtr.tupled((2, false))
151151
In Scala, case classes have an auto-generated extractor method, called `unapply` in their companion object.
152152
Its signature has changed between Scala 2.13 and Scala 3.
153153

154-
The new signature is option-less (see the new [Pattern Matching](/scala3/reference/changed-features/pattern-matching.html) reference), which causes an incompatibility when `unapply` is called explicitly.
154+
The new signature is option-less (see the new [Pattern Matching]({{ site.scala3ref }}/changed-features/pattern-matching.html) reference), which causes an incompatibility when `unapply` is called explicitly.
155155

156156
Note that this problem does not affect user-defined extractors, whose signature stays the same across Scala versions.
157157

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Child extends Parent {
6565

6666
## Reflective Type
6767

68-
Scala 2 reflective calls are dropped and replaced by the broader [Programmatic Structural Types](/scala3/reference/changed-features/structural-types.html).
68+
Scala 2 reflective calls are dropped and replaced by the broader [Programmatic Structural Types]({{ site.scala3ref }}/changed-features/structural-types.html).
6969

7070
Scala 3 can imitate Scala 2 reflective calls by making `scala.reflect.Selectable.reflectiveSelectable` available wherever `scala.language.reflectiveCalls` is imported.
7171
However the Scala 3 compiler does not infer structural types by default, and thus fails at compiling:

0 commit comments

Comments
 (0)