This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type IOptionalParameter = | |
| abstract member Do: count: int * [<Optional; DefaultParameterValue 10>] length : int -> unit | |
| type OptionalParameter() = | |
| member _.Do(count, [<Optional; DefaultParameterValue 10>]length) = printf "%i" (count + length) | |
| interface IOptionalParameter with | |
| member this.Do(count, length) = | |
| this.Do(count, length) | |
| let op1 = OptionalParameter().Do 12 |
NewerOlder