Well, I think it’s a step forward by making type(of:) *like* a stdlib function.
Now we need to change .Type and .Protocol syntax to something like Type,
AnyType and also fix the way it behaves in a generic context to finally open
up Type for custom type names. This should also help removing
That's worrisome. type is such a common identifier that I worry its going to
break a lot of code, create some confusion and force the un-esthetic qualifying.
> On 19 May 2017, at 21:38, Slava Pestov via swift-users
> wrote:
>
> Do you have a member named ‘type’ in the
When running the compiler using the "-swift-version 4" flag, the compiler
complains about creating a dynamic type. Errors are flagged from within
concrete base classes and also within protocol extensions.
*error: cannot invoke 'type' with an argument list of type '(of: Self)'*
*