summaryrefslogtreecommitdiff
path: root/05-types.md
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 17:48:36 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 17:48:36 -0700
commit09c957bef7b063353add3c04a9e0568aeed1eb30 (patch)
treefc71567e3e1ec486783c7fdf792080f3a4ca0a73 /05-types.md
parent9fb82769f4cdc51198a7252e117a2a3828e7b00e (diff)
downloadscala-09c957bef7b063353add3c04a9e0568aeed1eb30.tar.gz
scala-09c957bef7b063353add3c04a9e0568aeed1eb30.tar.bz2
scala-09c957bef7b063353add3c04a9e0568aeed1eb30.zip
github markdown: use ###### for definitions and notes
Diffstat (limited to '05-types.md')
-rw-r--r--05-types.md36
1 files changed, 18 insertions, 18 deletions
diff --git a/05-types.md b/05-types.md
index 294b87a71d..876d8eea15 100644
--- a/05-types.md
+++ b/05-types.md
@@ -933,10 +933,10 @@ i.e.\ it is transitive and reflexive. _least upper bounds_ and
_greatest lower bounds_ of a set of types
are understood to be relative to that order.
-
-> **Note**: The least upper bound or greatest lower bound
-> of a set of types does not always exist. For instance, consider
-> the class definitions
+###### Note
+The least upper bound or greatest lower bound
+of a set of types does not always exist. For instance, consider
+the class definitions
```
class A[+T] {}
@@ -944,20 +944,20 @@ class B extends A[B]
class C extends A[C]
```
-> Then the types `A[Any], A[A[Any]], A[A[A[Any]]], ...` form
-> a descending sequence of upper bounds for `B` and `C`. The
-> least upper bound would be the infinite limit of that sequence, which
-> does not exist as a Scala type. Since cases like this are in general
-> impossible to detect, a Scala compiler is free to reject a term
-> which has a type specified as a least upper or greatest lower bound,
-> and that bound would be more complex than some compiler-set
-> limit [^4].
->
-> The least upper bound or greatest lower bound might also not be
-> unique. For instance `A with B` and `B with A` are both
-> greatest lower of `A` and `B`. If there are several
-> least upper bounds or greatest lower bounds, the Scala compiler is
-> free to pick any one of them.
+Then the types `A[Any], A[A[Any]], A[A[A[Any]]], ...` form
+a descending sequence of upper bounds for `B` and `C`. The
+least upper bound would be the infinite limit of that sequence, which
+does not exist as a Scala type. Since cases like this are in general
+impossible to detect, a Scala compiler is free to reject a term
+which has a type specified as a least upper or greatest lower bound,
+and that bound would be more complex than some compiler-set
+limit [^4].
+
+The least upper bound or greatest lower bound might also not be
+unique. For instance `A with B` and `B with A` are both
+greatest lower of `A` and `B`. If there are several
+least upper bounds or greatest lower bounds, the Scala compiler is
+free to pick any one of them.
[^4]: The current Scala compiler limits the nesting level