You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/02/02 00:40:49 UTC
[groovy] 01/02: GROOVY-9926: Groovy documentation does not describe
how to instantiate empty maps in section where maps are first described
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 78de76dd74318bf2c439020ef49ba9389ff05544
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Feb 2 09:59:16 2021 +1000
GROOVY-9926: Groovy documentation does not describe how to instantiate empty maps in section where maps are first described
---
src/spec/test/SyntaxTest.groovy | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/spec/test/SyntaxTest.groovy b/src/spec/test/SyntaxTest.groovy
index 8f3d0b6..694d74c 100644
--- a/src/spec/test/SyntaxTest.groovy
+++ b/src/spec/test/SyntaxTest.groovy
@@ -767,6 +767,9 @@ class SyntaxTest extends CompilableTestSupport {
// tag::unknown_key[]
assert colors.unknown == null
+
+ def emptyMap = [:]
+ assert emptyMap.anyKey == null
// end::unknown_key[]
// tag::number_key[]