diff options
author | katsiaryna_bialiatka <katsiaryna_bialiatka@epam.com> | 2018-06-08 15:58:17 +0300 |
---|---|---|
committer | katsiaryna_bialiatka <katsiaryna_bialiatka@epam.com> | 2018-06-08 15:58:17 +0300 |
commit | 59459f1de8394c8110c2fddbeb8d65f8741a8122 (patch) | |
tree | 7a7aadda3ab69cc983e6b4154753e8b47deeaaf7 /mdoc/mdoc.Test/mdoc.Test.FSharp | |
parent | 111914edcbdf705aa44cfaeadabf343e3e3ea052 (diff) |
Fix Eii property names for VB
Apply fix to have interface name in signature
Fix ecma importers + slash doc importers
Add unit and integration tests
Addnew attribute for custom Eii name + fix xsd schema
Closes #92
Diffstat (limited to 'mdoc/mdoc.Test/mdoc.Test.FSharp')
-rw-r--r-- | mdoc/mdoc.Test/mdoc.Test.FSharp/Interfaces.fs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc/mdoc.Test/mdoc.Test.FSharp/Interfaces.fs b/mdoc/mdoc.Test/mdoc.Test.FSharp/Interfaces.fs index 3d279d76..a8a05d02 100644 --- a/mdoc/mdoc.Test/mdoc.Test.FSharp/Interfaces.fs +++ b/mdoc/mdoc.Test/mdoc.Test.FSharp/Interfaces.fs @@ -5,12 +5,12 @@ // as shown in the following code. type IPrintable = abstract member Print : unit -> unit + abstract member MyReadOnlyProperty :int type SomeClass1(x: int, y: float) = interface IPrintable with member this.Print() = printfn "%d %f" x y - - + member this.MyReadOnlyProperty = 10 // To call the interface method when you have an object of type SomeClass, // you must upcast the object to the interface type, as shown in the following code.+ @@ -24,6 +24,7 @@ type SomeClass2(x: int, y: float) = member this.Print() = (this :> IPrintable).Print() interface IPrintable with member this.Print() = printfn "%d %f" x y + member this.MyReadOnlyProperty = 10 let x2 = new SomeClass2(1, 2.0) x2.Print() |