diff --git a/_overviews/scala3-book/methods-main-methods.md b/_overviews/scala3-book/methods-main-methods.md index e2a30abfb1..78071efb49 100644 --- a/_overviews/scala3-book/methods-main-methods.md +++ b/_overviews/scala3-book/methods-main-methods.md @@ -6,9 +6,11 @@ languages: [ru, zh-cn] num: 26 previous-page: methods-most next-page: methods-summary +scala3: true +versionSpecific: true --- -
Writing one line programs Scala 3 Only
+
Writing one line programs
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: diff --git a/_overviews/scala3-book/types-intersection.md b/_overviews/scala3-book/types-intersection.md index 4d3f21aa31..6c7e015ba6 100644 --- a/_overviews/scala3-book/types-intersection.md +++ b/_overviews/scala3-book/types-intersection.md @@ -6,8 +6,9 @@ languages: [ru, zh-cn] num: 51 previous-page: types-generics next-page: types-union +scala3: true +versionSpecific: true --- -Scala 3 only 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.