Files
swift-mirror/lib/Sema/MiscDiagnostics.cpp
Doug Gregor 85611dbf25 Allow marker protocols as existentials (but still ban casts)
There is no problem with having an existential value that involves a
marker protocol. However, since there is no runtime checking for
marker protocols, ban "as?" and "is" casts to them.
2021-02-18 23:44:39 -08:00

179 KiB