I am trying to use nested functions in my Swift Program.

```
func test()->Bool{
    func test1()->Bool{
        return true
    }

    func test2()->Bool{
        return true
    }

    func test3()->Bool{
        return true
    }
    return test1 && test2 && test3
 }

```

Its giving me some error! But if i try to

```
return test1

```

Its working fine. 

Please explain why its giving me error on applying operators in nested function.