From 8aa2796fd0d0b8fa528240b216fe19bda4d33ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Bra=C4=8Devac?= Date: Mon, 8 Dec 2025 21:17:47 +0100 Subject: [PATCH] Move into to preview in the language reference --- docs/_docs/reference/{experimental => preview}/into.md | 8 ++------ docs/_docs/reference/preview/overview.md | 2 +- docs/sidebar.yml | 3 ++- 3 files changed, 5 insertions(+), 8 deletions(-) rename docs/_docs/reference/{experimental => preview}/into.md (98%) diff --git a/docs/_docs/reference/experimental/into.md b/docs/_docs/reference/preview/into.md similarity index 98% rename from docs/_docs/reference/experimental/into.md rename to docs/_docs/reference/preview/into.md index 8b54865c2cba..e6990427bdc3 100644 --- a/docs/_docs/reference/experimental/into.md +++ b/docs/_docs/reference/preview/into.md @@ -2,14 +2,10 @@ layout: doc-page title: The `into` Type and Modifier redirectFrom: /docs/reference/other-new-features/into.html -nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/into.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/preview/into.html --- -This feature is not yet part of the Scala 3 language definition. It can be made available by a language import: - -```scala -import scala.language.experimental.into -``` +This feature is available as a preview since Scala 3.8.0. ## Summary diff --git a/docs/_docs/reference/preview/overview.md b/docs/_docs/reference/preview/overview.md index 944e47181e15..03787c36484f 100644 --- a/docs/_docs/reference/preview/overview.md +++ b/docs/_docs/reference/preview/overview.md @@ -21,4 +21,4 @@ This flag enables the use of all preview language feature in the project. ## List of available preview features -Currently there are no available preview features. +* [The `into` Type and Modifier](into.md) diff --git a/docs/sidebar.yml b/docs/sidebar.yml index 06949fcd325c..db10c2280a85 100644 --- a/docs/sidebar.yml +++ b/docs/sidebar.yml @@ -141,6 +141,8 @@ subsection: - title: Preview Features directory: preview index: reference/preview/overview.md + subsection: + - page: reference/preview/into.md - title: Experimental Features directory: experimental index: reference/experimental/overview.md @@ -157,7 +159,6 @@ subsection: - page: reference/experimental/numeric-literals.md - page: reference/experimental/explicit-nulls.md - page: reference/experimental/main-annotation.md - - page: reference/experimental/into.md - title: Capture Checking index: reference/experimental/capture-checking/cc.md subsection: