Thanks Dave!

As another example, consider it as part of this common pattern:

class A<T> {

    init() {

        // ..

    }

}


class B<T>: A<T> {

    override init() {

        // ..

    }

}


class Factory {



    class func makeA<T>() -> A<T> { return B<T>() }

    //..

}


Factory.makeA<Int>()



Kind regards,

Ramiro

2016-11-22 14:14 GMT+11:00 Dave Abrahams via swift-evolution <
[email protected]>:

>
> on Mon Nov 21 2016, Ramiro Feria Purón <[email protected]> wrote:
>
> > *Proposed Solution:*
> >
> > Allow explicit type parameters in generic function call:
> >
> > let _ = g<String>(7)            // Ok
>
> I think we want this capability, but it isn't a high priority and it's
> an additive feature so it's certainly out-of-scope for Swift 4 phase 1.
>
> --
> -Dave
>
> _______________________________________________
> swift-evolution mailing list
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to