cloudRoutine / issueCommRepo

Sample Port of F# Uservoice Suggestions
0 stars 0 forks source link

Allow flexible types in default constructor constraint #51

Open cloudRoutine opened 7 years ago

cloudRoutine commented 7 years ago

Allow flexible types in default constructor constraint [12546540]

Submitted by George on 3/1/2016 12:00:00 AM
[ 2 votes ]

This would permit, let ctor<'a when 'a:(new: unit -> #IWebDriver)> : unit -> IWebDriver = ... versus let ctor<'a when 'a:(new: unit- > 'a) and 'a :> IWebDriver> = fun () -> new 'a() :> IWebDriver