Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: doc-page
title: "Toplevel Definitions"
nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/toplevel-definitions.html
nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/toplevel-definitions.html
---

All kind of definitions can now be written at the top-level.
Expand Down
1 change: 1 addition & 0 deletions docs/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ subsection:
- page: reference/other-new-features/experimental-defs.md
- page: reference/other-new-features/preview-defs.md
- page: reference/other-new-features/binary-literals.md
- page: reference/other-new-features/toplevel-definitions.md
- title: Other Changed Features
directory: changed-features
index: reference/changed-features/changed-features.md
Expand Down
16 changes: 15 additions & 1 deletion project/resources/referenceReplacements/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ subsection:
- page: reference/other-new-features/export.md
- page: reference/other-new-features/opaques.md
- page: reference/other-new-features/opaques-details.md
- page: reference/other-new-features/named-tuples.md
- page: reference/other-new-features/open-classes.md
- page: reference/other-new-features/parameter-untupling.md
- page: reference/other-new-features/parameter-untupling-spec.md
Expand All @@ -80,7 +81,9 @@ subsection:
- page: reference/other-new-features/safe-initialization.md
- page: reference/other-new-features/type-test.md
- page: reference/other-new-features/experimental-defs.md
- page: reference/other-new-features/preview-defs.md
- page: reference/other-new-features/binary-literals.md
- page: reference/other-new-features/toplevel-definitions.md
- title: Other Changed Features
directory: changed-features
index: reference/changed-features/changed-features.md
Expand Down Expand Up @@ -118,7 +121,6 @@ subsection:
- page: reference/dropped-features/type-projection.md
- page: reference/dropped-features/do-while.md
- page: reference/dropped-features/procedure-syntax.md
- page: reference/dropped-features/package-objects.md
- page: reference/dropped-features/early-initializers.md
- page: reference/dropped-features/class-shadowing.md
- page: reference/dropped-features/class-shadowing-spec.md
Expand All @@ -133,6 +135,11 @@ subsection:
- page: reference/dropped-features/nonlocal-returns.md
- page: reference/dropped-features/this-qualifier.md
- page: reference/dropped-features/wildcard-init.md
- title: Preview Features
directory: preview
index: reference/preview/overview.md
subsection:
- page: reference/preview/better-fors.md
- title: Experimental Features
directory: experimental
index: reference/experimental/overview.md
Expand All @@ -149,8 +156,15 @@ subsection:
- page: reference/experimental/numeric-literals.md
- page: reference/experimental/explicit-nulls.md
- page: reference/experimental/main-annotation.md
- page: reference/experimental/into-modifier.md
- page: reference/experimental/cc.md
- page: reference/experimental/purefuns.md
- page: reference/experimental/tupled-function.md
- page: reference/experimental/modularity.md
- page: reference/experimental/typeclasses.md
- page: reference/experimental/runtimeChecked.md
- page: reference/experimental/unrolled-defs.md
- page: reference/experimental/package-object-values.md
- page: reference/syntax.md
- title: Language Versions
index: reference/language-versions/language-versions.md
Expand Down
15 changes: 14 additions & 1 deletion project/scripts/expected-links/reference-expected-links.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
./contextual/right-associative-extension-methods.html
./contextual/type-classes.html
./contextual/using-clauses.html
./docs/reference/experimental/package-object-values.html
./docs/reference/other-new-features/into-modifier.html
./docs/reference/other-new-features/named-typeargs.html
./dropped-features.html
./dropped-features/auto-apply.html
Expand All @@ -54,7 +56,6 @@
./dropped-features/limit22.html
./dropped-features/macros.html
./dropped-features/nonlocal-returns.html
./dropped-features/package-objects.html
./dropped-features/procedure-syntax.html
./dropped-features/symlits.html
./dropped-features/this-qualifier.html
Expand All @@ -74,12 +75,19 @@
./experimental/explicit-nulls.html
./experimental/fewer-braces.html
./experimental/index.html
./experimental/into-modifier.html
./experimental/main-annotation.html
./experimental/modularity.html
./experimental/named-typeargs-spec.html
./experimental/named-typeargs.html
./experimental/numeric-literals.html
./experimental/overview.html
./experimental/package-object-values.html
./experimental/purefuns.html
./experimental/runtimeChecked.html
./experimental/tupled-function.html
./experimental/typeclasses.html
./experimental/unrolled-defs.html
./features-classification.html
./index.html
./language-versions/binary-compatibility.html
Expand Down Expand Up @@ -116,17 +124,22 @@
./other-new-features/index.html
./other-new-features/kind-polymorphism.html
./other-new-features/matchable.html
./other-new-features/named-tuples.html
./other-new-features/opaques-details.html
./other-new-features/opaques.html
./other-new-features/open-classes.html
./other-new-features/parameter-untupling-spec.html
./other-new-features/parameter-untupling.html
./other-new-features/preview-defs.html
./other-new-features/safe-initialization.html
./other-new-features/targetName.html
./other-new-features/threadUnsafe-annotation.html
./other-new-features/toplevel-definitions.html
./other-new-features/trait-parameters.html
./other-new-features/transparent-traits.html
./other-new-features/type-test.html
./overview.html
./preview/better-fors.html
./preview/index.html
./soft-modifier.html
./syntax.html
Loading