Experimental language features

Experimental language features

All experimental language features can be found under the scala.language.experimental package. They are enabled by importing the feature or using the -language compiler flag.

Experimental language imports

In general, experimental language features can be imported in an experimental scope (see experimental definitions. They can be imported at the top-level if all top-level definitions are @experimental.