From 509ce7aaa759d5ee99b48c719425617a287deabc Mon Sep 17 00:00:00 2001 From: Vince Date: Thu, 14 Dec 2023 10:32:05 +0100 Subject: [PATCH 1/2] Add info pointer for singleton and refinement types, #2933 --- _overviews/scala3-book/types-others.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_overviews/scala3-book/types-others.md b/_overviews/scala3-book/types-others.md index a5ae730b1e..996ec8cf68 100644 --- a/_overviews/scala3-book/types-others.md +++ b/_overviews/scala3-book/types-others.md @@ -21,7 +21,8 @@ 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, see the [Scala 3 Reference documentation][reference]. +For more details on singleton types and refinement types, see the Scala 3 [specification of types](https://scala-lang.org/files/archive/spec/3.4/03-types.html). From 29c0b72dd852904e16df94fb9118f9e074e50626 Mon Sep 17 00:00:00 2001 From: Vince Date: Fri, 22 Dec 2023 11:21:12 +0100 Subject: [PATCH 2/2] Link to specific sections of the spec for literal and refined types --- _overviews/scala3-book/types-others.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_overviews/scala3-book/types-others.md b/_overviews/scala3-book/types-others.md index 996ec8cf68..f2db8a42be 100644 --- a/_overviews/scala3-book/types-others.md +++ b/_overviews/scala3-book/types-others.md @@ -21,8 +21,9 @@ Scala has several other advanced types that are not shown in this book, includin - Refinement types - Kind polymorphism -For more details on most of these types, see the [Scala 3 Reference documentation][reference]. -For more details on singleton types and refinement types, see the Scala 3 [specification of types](https://scala-lang.org/files/archive/spec/3.4/03-types.html). +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.