F# compilation error: Unexpected type application
- by Jim Burger
In F#, given the following class:
type Foo() =
member this.Bar<'t> (arg0:string) = ignore()
Why does the following compile:
let f = new Foo()
f.Bar<Int32> "string"
While the following won't compile:
let f = new Foo()
"string" |> f.Bar<Int32> //The compiler returns the error: "Unexpected type application"