Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.8.6, 2.4.7
-
None
-
None
-
*
Description
Bad Groovy
def myMap = [:] as Map<String, Map<String,String>> def foo = ''
tells:
Error
1 compilation error:
expecting EOF, found 'def' at line: 2, column: 1
but:
Good Groovy
def myMap = [:] as Map<String, Map<String,String> > def bar = ''
works fine.
Difference lies between >> and > > (with space).
Fix "Bad Groovy" assignment.
Attachments
Issue Links
- duplicates
-
GROOVY-5652 Semicolon required after coercing to a parameterized (generic) type containing a parameterized (generic) type as its only or last type argument when there is no space between the ending ">>"
- Closed
- is duplicated by
-
GROOVY-8015 Strange groovy behavior
- Closed