Repository: groovy Updated Branches: refs/heads/GROOVY_2_4_X 96f07c832 -> 6ffe0f62d
fix typo Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/3d4ceb1b Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/3d4ceb1b Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/3d4ceb1b Branch: refs/heads/GROOVY_2_4_X Commit: 3d4ceb1bc06ae57c37e54ed07373bbc69b0d8c4c Parents: 96f07c8 Author: Paul King <[email protected]> Authored: Wed May 23 10:09:42 2018 +1000 Committer: Paul King <[email protected]> Committed: Thu May 24 00:28:51 2018 +1000 ---------------------------------------------------------------------- src/spec/doc/core-semantics.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/3d4ceb1b/src/spec/doc/core-semantics.adoc ---------------------------------------------------------------------- diff --git a/src/spec/doc/core-semantics.adoc b/src/spec/doc/core-semantics.adoc index 232fffb..eb7f7b7 100644 --- a/src/spec/doc/core-semantics.adoc +++ b/src/spec/doc/core-semantics.adoc @@ -1591,8 +1591,8 @@ The type checker will now fail at compile time, because it knows that `o` is a ` so it's a type error. It is important to understand that it is not the fact of declaring a variable with `def` that triggers type inference. -Flow typing works for *any* variable of any type. Declaring a variable with an explicit type only constraints what you -can assign to a variable: +Flow typing works for *any* variable of any type. Declaring a variable with an explicit type only constrains what you +can assign to the variable: [source,groovy] ----
