File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func _typeByName(name: String) -> Any.Type? {
104
104
// actually a class.
105
105
var name = " C "
106
106
if components [ 0 ] == " Swift " {
107
- name += " Ss "
107
+ name += " s "
108
108
} else {
109
109
name += String ( components [ 0 ] . characters. count) + components[ 0 ]
110
110
}
Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ Runtime.test("typeByName") {
318
318
expectTrue ( _typeByName ( " a.SomeSubclass " ) == SomeSubclass . self)
319
319
// name lookup will be via protocol conformance table
320
320
expectTrue ( _typeByName ( " a.SomeConformingClass " ) == SomeConformingClass . self)
321
+ // FIXME: NonObjectiveCBase is slated to die, but I can't think of another
322
+ // nongeneric public class in the stdlib...
323
+ expectTrue ( _typeByName ( " Swift.NonObjectiveCBase " ) == NonObjectiveCBase . self)
321
324
}
322
325
323
326
Runtime . test ( " demangleName " ) {
You can’t perform that action at this time.
0 commit comments