Ported from https://github.com/rescript-lang/rescript-compiler/issues/2827 (cc @liubko as original author). Can't use `[bs.unwrap]` with labeled arguments. ### Code ``` [@bs.obj] external func : ( ~param: string, ~polyParam: [@bs.unwrap] [ | `Str(string) | `Int(int)], unit ) => _ = ""; ``` ### Error ``` @obj label polyParam does not support @unwrap arguments ``` [Playground link](https://melange.re/unstable/playground/?language=Reason&code=W0Bicy5vYmpdCmV4dGVybmFsIGZ1bmMgOgogICgKICAgIH5wYXJhbTogc3RyaW5nLAogICAgfnBvbHlQYXJhbTogW0Bicy51bndyYXBdIFsgfCBgU3RyKHN0cmluZykgfCBgSW50KGludCldLAogICAgdW5pdAogICkgPT4KICBfID0KICAiIjs%3D&live=on).