Skip to content

Commit

Permalink
Merge pull request #3113 from gkepka/scala-3-only
Browse files Browse the repository at this point in the history
Consistent Scala 3 specific page warnings
  • Loading branch information
sjrd authored Nov 20, 2024
2 parents 58e3df6 + 2a23fcf commit dd234da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _overviews/scala3-book/methods-main-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ languages: [ru, zh-cn]
num: 26
previous-page: methods-most
next-page: methods-summary
scala3: true
versionSpecific: true
---

<h5>Writing one line programs <span class="tag tag-inline">Scala 3 Only</span></h5>
<h5>Writing one line programs</h5>

Scala 3 offers a new way to define programs that can be invoked from the command line: Adding a `@main` annotation to a method turns it into entry point of an executable program:

Expand Down
3 changes: 2 additions & 1 deletion _overviews/scala3-book/types-intersection.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ languages: [ru, zh-cn]
num: 51
previous-page: types-generics
next-page: types-union
scala3: true
versionSpecific: true
---
<span class="tag tag-inline">Scala 3 only</span>

Used on types, the `&` operator creates a so called _intersection type_.
The type `A & B` represents values that are **both** of the type `A` and of the type `B` at the same time.
Expand Down

0 comments on commit dd234da

Please sign in to comment.