File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,7 @@ class DecodedMetadataBuilder {
281
281
}
282
282
283
283
BuiltType createMetatypeType (BuiltType instance, bool wasAbstract) const {
284
- // FIXME: Implement.
285
- return BuiltType ();
284
+ return swift_getMetatypeMetadata (instance);
286
285
}
287
286
288
287
BuiltType createExistentialMetatypeType (BuiltType instance) const {
Original file line number Diff line number Diff line change @@ -65,5 +65,10 @@ DemangleToMetadataTests.test("function types") {
65
65
expectEqual ( type ( of: f2_variadic_inout) , _typeByMangledName ( " yyytd_ytztc " ) !)
66
66
}
67
67
68
+ DemangleToMetadataTests . test ( " metatype types " ) {
69
+ expectEqual ( type ( of: type ( of: ( ) ) ) , _typeByMangledName ( " ytm " ) !)
70
+ expectEqual ( type ( of: type ( of: f0) ) , _typeByMangledName ( " yycm " ) !)
71
+ }
72
+
68
73
runAllTests ( )
69
74
You can’t perform that action at this time.
0 commit comments