Test "other/name-lone-surrogate"
Expected: ✋ reject · Size: 419 B · Lines: 6 · lean4export: 3.2.0 · Lean: 4.38.0, commit a8ad4dbebef375bdba9a6233afdb8ad52dbb16cd · 📄 Declaration
def foo : Type := Prop, with the name foo replaced by a lone
surrogate written as the JSON escape \ud800.
Names are made of strings, which are sequences of Unicode scalar values (code points below 0x110000 that are not surrogates), so an export with such a name is malformed and must be rejected.
Hand-made from an export of def foo : Type := Prop.
See Lean issue #16877.