Added missing delegates to AST to Contract

This commit is contained in:
Marcin Grzejszczak
2016-09-20 08:35:21 +02:00
parent 8bb5ce7297
commit f09b96a524

View File

@@ -47,7 +47,7 @@ class Contract {
/**
* Factory method to create the DSL
*/
static Contract make(Closure closure) {
static Contract make(@DelegatesTo(Contract) Closure closure) {
Contract dsl = new Contract()
closure.delegate = dsl
closure()