Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading