hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

OverloadID gives compiler warning

Last post 06-30-2008, 18:57 by Chris. 0 replies.
Sort Posts: Previous Next
  •  06-30-2008, 18:57 6252

    OverloadID gives compiler warning

    Hi,

    I keep getting this problem with the OverloadID attribute. I was not able to figure this one out.

    type ITest =

    [<OverloadID("Add.string")>]

       abstract Add : string -> unit

    [<OverloadID("Add.int")>]

       abstract Add : int -> unit

    //--------------------------------------------

    type Test =

       interface ITest with

       [<OverloadID("Add.string")>]

          member x.Add(text:string) = ()   // Compiler throws warning message

      [<OverloadID("Add.int")>]

          member x.Add(v:int) = ()      // Compiler throws warning message

    end

    //--------------------------------------------

    I appreciate any help in sorting this out. Regards

    Chris

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems