You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typePerson(name: string)=inherit DynamicObj()let mutablename= name
memberthis.Namewith get()= name
andset(value)= name <- value
memberthis.Walk()= printfn "%s is walking" name
You can currently set a dynamic property with the same name as an existing method.
letp= Person("John")
p.SetValue("Walk","Shadowing")
p.Walk()// John is walking
p.GetValue("Walk")// val it: obj = "Shadowing"
Given the following class
You can currently set a dynamic property with the same name as an existing method.
Should this work, or fail? @kMutagene
The text was updated successfully, but these errors were encountered: