Indexer property only accepts tuple without parens. Anybody know why?

Since there are overloads, it’s a bit tricky in this case to make the compiler understand. This is how it can be done.

let args = (@"foo.txt", "Hello!")
let dummy = args |> File.WriteAllText
1 Like