As far as I know, the object expression does not support type attribute. We have to define concrete type:

1
2
3
4
5
6
7
8
9
10
11
12
13
open System

type ITest =
    abstract Show : 'a -> unit

[<Serializable>]
type Test() =
    interface ITest with
        member test.Show(v) = printfn "%A" v

let test = new Test() :> ITest

test.Show(123)
By on 3/9/2010 3:20 AM ()

Bad news... Anyway thanks.

By on 3/9/2010 7:36 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper