upgradeSyntaxFrom2To3 icon indicating copy to clipboard operation
upgradeSyntaxFrom2To3 copied to clipboard

upgradeSyntaxFrom2To3 [@bs.meth] regression

Open arnihermann opened this issue 9 years ago • 1 comments

I just ran upgradeSyntaxFrom2To3 on our codebase with only but a single problem (awesome job on the migration :clap:):

The following snippet:

type history =
  Js.t {. length : int, location : string, action : string, push [@bs.meth] : string => unit};

was turned into

type history = {
  .
  "length": int, "location": string, "action": string, [@bs.meth] push : string => unit
};

A quick mention on discord quickly revealed the correct solution:

type history = {
  .
  "length": int, "location": string, "action": string, "push": [@bs.meth] (string => unit)
};

arnihermann avatar Oct 28 '17 06:10 arnihermann

Fixed it seems. Sorry for the trouble!

chenglou avatar Feb 24 '18 06:02 chenglou