Skip to content

Conversation

niw
Copy link
Contributor

@niw niw commented Nov 12, 2021

Problem

Using the latest Swift to build Swift runtime will emit warnings about class keyword
which is deprecated.

warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead

Solution

Use AnyObject instead.

@parrt
Copy link
Member

parrt commented Dec 28, 2021

@hanjoes ?

@hanjoes
Copy link
Member

hanjoes commented Dec 28, 2021

we should be able to merge this. AnyObject provides better compatiblity and class could be removed in future swift releases. @parrt

@parrt
Copy link
Member

parrt commented Dec 28, 2021

thanks @hanjoes and happy new year!

@parrt parrt added this to the 4.9.4 milestone Dec 28, 2021
@parrt parrt merged commit 667631b into antlr:master Dec 28, 2021
@hanjoes
Copy link
Member

hanjoes commented Dec 28, 2021

thanks @hanjoes and happy new year!

Happy new year to you too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants