ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Cryptic error message when applying += on map values #345

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
@Typed package foo

File foo = ['foo']
File bar = ['bar']
File goo = ['goo']

Map<File, List<File>> map = [:]
map[foo] = [goo]
map[foo] += [bar]
println map

Compilation fails:

Cannot convert Integer to File

Original issue reported on code.google.com by gromop...@gmail.com on 6 Mar 2011 at 2:33

GoogleCodeExporter commented 8 years ago
The issue seems to have been resolved already. Added a test for it and 
submitted a pull request.

Original comment by roshanda...@gmail.com on 30 May 2011 at 4:30

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 30 May 2011 at 6:37