From 22ecdf0474838d6fc1989eae501fb8705d600bb4 Mon Sep 17 00:00:00 2001 From: Vince Date: Fri, 19 Jan 2024 10:54:07 +0100 Subject: [PATCH] Add info pointer for singleton and refinement types, #2933 (#2934) * Add info pointer for singleton and refinement types, #2933 * Link to specific sections of the spec for literal and refined types --- _overviews/scala3-book/types-others.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_overviews/scala3-book/types-others.md b/_overviews/scala3-book/types-others.md index a5ae730b1..f2db8a42b 100644 --- a/_overviews/scala3-book/types-others.md +++ b/_overviews/scala3-book/types-others.md @@ -21,7 +21,9 @@ Scala has several other advanced types that are not shown in this book, includin - Refinement types - Kind polymorphism -For more details on these types, see the [Scala 3 Reference documentation][reference]. +For more details on most of these types, refer to the [Scala 3 Reference documentation][reference]. +For singleton types see the [literal types](https://scala-lang.org/files/archive/spec/3.4/03-types.html#literal-types) section of the Scala 3 spec, +and for refinement types, see the [refined types](https://scala-lang.org/files/archive/spec/3.4/03-types.html) section.