[ASTGen] Generate @_typeEraser attribute

This commit is contained in:
Rintaro Ishizaki
2025-03-15 21:40:06 -07:00
parent 6525d6413c
commit a2e40d6c31
4 changed files with 47 additions and 1 deletions

View File

@@ -259,3 +259,8 @@ struct LayoutOuter {
@rethrows protocol RethrowingProtocol {
func source() throws
}
@_typeEraser(AnyEraser) protocol EraserProto {}
struct AnyEraser: EraserProto {
init<T: EraserProto>(erasing: T) {}
}