NashTech Blog

Table of Contents

Hello folks,

We have released another video on Scala3 series which talks about Intersection Types.

Intersection Type is a type which is the mixin of multiple types. For example, the intersection types of two different type A and B would be A & B.
Intersection Types A & B replaces compound types A with B in Scala2. But the interesting feature about Intersection Types is that they too are commutative by nature, which means A & B is same as B & A.

Watch out the video on Intersection Types and get more details on it.

Picture of Aditya Kumar Singh

Aditya Kumar Singh

Test Automation Consultant

Leave a Comment

Your email address will not be published. Required fields are marked *

Suggested Article

Scroll to Top