You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to extend a type with a method that takes keyword args, the generated code ignores the keyword arguments if EmitMethod is present. This isn't required when defining the type directly, but it is when extending an existing type.
I updated the snippet. EmitMethod works to override the name of the method, but it does not include the argument exists_ok. Try switching to javascript and you will see
Description
When attempting to extend a type with a method that takes keyword args, the generated code ignores the keyword arguments if
EmitMethod
is present. This isn't required when defining the type directly, but it is when extending an existing type.Repro code
https://fable.io/repl/#?code=PYBwpgdgBAYghgIwDZgHQGFgCcwChcDaAPAKJZwDOYAfALq4AuAnuFAJIkAeI2DFUAXlxQoxAApxyAWwDyCAFZgAxgwAUARgCUdYaNJSAlgwCyYBgAtgAE1UAiKXADWYKwawVb2+iMQUG5FSgHZ1d3AC4oEDgLCL8sAwgAcygAKigAfjBOAz8KAH1gRzCEYGAkKABaaigAVwgjfBFxSThZBWU1LR0fBDi4QOCXNwoAJgiomKg4hOS0zOzcgqKSssrquobGFjB2Lh4sPigAdyNzKF1m6TlFFQ0vC-0jUwtrO0HQj3uRKTApBDAsFA8qh3sMAMyqCbmWL+GYAGgyWRyfCWxVKSE0EQ2DEEUAg0QMADcwDIIEgmPhiGwpPsGABBJBIOzAT46FA4lkRDjcXj8AR4gnE0nk-AskFOIbuKB2KzROC2BFIxaFXH+GpgTS4MWg9wjaW2WUMeWKhYolX8tUarUUcUhcH6w3GqBKs2OVVYdWaIA&html=Q&css=Q
Related information
The text was updated successfully, but these errors were encountered: