lt = <span class="hljs-keyword">new</span> Result fldPathFunc = <span class="hljs-function"><span class="hljs-params">(path)</span> -&gt;</span> (Result.prop field) path

    expect(result.isError).toBe <span class="hljs-literal">false</span>

    localResult = <span class="hljs-keyword">new</span> Result result

    expect(localResult.pathFunc).toBe result.pathFunc

    expect(localResult.isError).toBe <span class="hljs-literal">false</span>

    localResult.error <span class="hljs-string">'test.field