mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ASTGen] Generate @_typeEraser attribute
This commit is contained in:
@@ -259,3 +259,8 @@ struct LayoutOuter {
|
||||
@rethrows protocol RethrowingProtocol {
|
||||
func source() throws
|
||||
}
|
||||
|
||||
@_typeEraser(AnyEraser) protocol EraserProto {}
|
||||
struct AnyEraser: EraserProto {
|
||||
init<T: EraserProto>(erasing: T) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user