This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new b27efc0 add var example
b27efc0 is described below
commit b27efc02407549e4c5c4df1344e9dbf2e4e9b7fe
Author: Paul King <[email protected]>
AuthorDate: Sun Jul 23 12:39:32 2023 +1000
add var example
---
site/src/site/releasenotes/groovy-5.0.adoc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/site/src/site/releasenotes/groovy-5.0.adoc
b/site/src/site/releasenotes/groovy-5.0.adoc
index eae0548..f50713b 100644
--- a/site/src/site/releasenotes/groovy-5.0.adoc
+++ b/site/src/site/releasenotes/groovy-5.0.adoc
@@ -17,6 +17,16 @@ Some features described here as "incubating" may become
stable before 5.0.0 fina
[[Groovy5.0-new]]
== New features
+=== Support for `var` with multi-assignment
+
+The `var` keyword can be used in combination with multi-assignment:
+
+[source,groovy]
+----
+var (x, y) = [1, 2]
+assert x == 1 && y == 2
+----
+
=== Extension method additions and improvements
There are some additional extension methods for `File` objects: