-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Given the following class
type Person(name : string) =
inherit DynamicObj()
let mutable name = name
member this.Name
with get() = name
and set(value) = name <- value
member this.Walk () = printfn "%s is walking" nameYou can currently set a dynamic property with the same name as an existing method.
let p = Person("John")
p.SetValue("Walk", "Shadowing")
p.Walk() // John is walking
p.GetValue("Walk") // val it: obj = "Shadowing"Should this work, or fail? @kMutagene
Metadata
Metadata
Assignees
Labels
No labels