```
struct Test {
    func isOk () -> Bool{
        return true
    }

    var mapping: [Int: () -> Bool] = [
        1: isOk
    ]

    func test() -> Bool {
        return mapping[1]()
    }
}

```

I got this error:

```
Cannot convert value of type '(Test) -> () -> Bool' to expected dictionary value type '() -> Bool'

```

Any idea? Thanks!