Skip to content

Add code tabs for _overviews/scala3-book/types-intersection.md #2653

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

jglodek
Copy link
Contributor

@jglodek jglodek commented Dec 7, 2022

Regarding #2481
made on Warsaw Scala Spree

image

@jglodek jglodek marked this pull request as ready for review December 7, 2022 18:58
@@ -13,6 +13,9 @@ 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.
For instance, the following example uses the intersection type `Resettable & Growable[String]`:

{% tabs reset-grow class=tabs-scala-version %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the file is Scala 3 only, you can add this at the beginning of the file:

<span class="tag tag-inline">Scala 3 Only</span>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jglodek jglodek force-pushed the patch-1 branch 2 times, most recently from 5be0de2 to de9b367 Compare December 7, 2022 20:21
@jglodek jglodek changed the title Add code tabs for _overviews/scala3-book/types-types-intersection.md Add code tabs for _overviews/scala3-book/types-intersection.md Dec 7, 2022
@bishabosha
Copy link
Member

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants