let name_universe u uri =
match u with
| (i, None) -> (i, Some uri)
- | (i, Some ouri) ->
+ | (i, Some ouri) when UriManager.eq ouri uri -> u
+ | (i, Some ouri) ->
(* inside obj living at uri 'uri' should live only
* universes with uri None. Call Unshare.unshare ~fresh_univs:true
* if you want to reuse a Type in another object *)