diff options
author | Seth Tisue <seth@tisue.net> | 2015-09-30 09:11:58 -0400 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-09-30 09:11:58 -0400 |
commit | 8b5f50f8ed55282ce30db4ecb390d7e75dc6cec5 (patch) | |
tree | 7ec76929d4f797ef386b49c588019bf8d411e099 | |
parent | 27da46343cd545534819300235bc64ab74958c92 (diff) | |
download | scala-8b5f50f8ed55282ce30db4ecb390d7e75dc6cec5.tar.gz scala-8b5f50f8ed55282ce30db4ecb390d7e75dc6cec5.tar.bz2 scala-8b5f50f8ed55282ce30db4ecb390d7e75dc6cec5.zip |
tiny fix to spec (pattern matching section)
-rw-r--r-- | spec/08-pattern-matching.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/08-pattern-matching.md b/spec/08-pattern-matching.md index c494fbcef5..d496388a91 100644 --- a/spec/08-pattern-matching.md +++ b/spec/08-pattern-matching.md @@ -507,7 +507,7 @@ def f[B](t: Term[B]): B = t match { The expected type of the pattern `y: Number` is `Term[B]`. The type `Number` does not conform to `Term[B]`; hence Case 2 of the rules above -applies. This means that `b` is treated as another type +applies. This means that `B` is treated as another type variable for which subtype constraints are inferred. In our case the applicable constraint is `Number <: Term[B]`, which entails `B = Int`. Hence, `B` is treated in |