[ruby-core:113846] [Ruby master Feature#19712] IO#reopen removes singleton class