I'm new to groovy and gradle and was wondering whether someone knew why my scriplet wasn't working (edit actually it does work but the warning still appears). This section is taken out of the build.gradle script and intellij highlights this and complains that it: "Cannot infer argument types". any help would be nice :)

```
task hellofun << {
    [silly:'billy'].each { k, v ->
        println "$k=$v"
    }
}

```

**EDIT:** I have submitted a [bug request](http://intellij-support.jetbrains.com/requests/16896) informing Intellij of this problem

**EDIT:** apparently this is a [known bug](http://youtrack.jetbrains.com/issue/IDEA-116430) I'll update this once the bug is fixed