Archived
1
0

Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'

This commit is contained in:
Joe Previte
2020-12-15 15:52:33 -07:00
4649 changed files with 1311795 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// from https://msdn.microsoft.com/en-us/library/dd233160.aspx
// The declaration creates a constructor that takes two values, name and age.
type Person(name:string, age:int) =
let mutable internalAge = age
new(name:string) = Person(name, 0)
member this.Name = name
// A read/write property.
member this.Age
with get() = internalAge
and set(value) = internalAge <- value
member this.HasABirthday () = internalAge <- internalAge + 1
member this.IsOfAge targetAge = internalAge >= targetAge
override this.ToString () =
"Name: " + name + "\n" + "Age: " + (string)internalAge

File diff suppressed because it is too large Load Diff