Reason: Nested record parsing error

Created on 8 Jun 2018  路  2Comments  路  Source: reasonml/reason

let a = {
  uPSSecurity: {
    usernameToken: {
      username,
      password: password,
    },
  },
};

Gives the error "Record type is not allowed".

This works, however:

let a = {
  uPSSecurity: {
    usernameToken: {
      username,
      password: "a",
    },
  },
};
BUG Parser

Most helpful comment

More info: this works

let a = {
  uPSSecurity: {
    usernameToken: {{
      username,
      password: password,
    }},
  },
};

I think it's the old "is this a block, or is it a record, or is it an object" issue

All 2 comments

More info: this works

let a = {
  uPSSecurity: {
    usernameToken: {{
      username,
      password: password,
    }},
  },
};

I think it's the old "is this a block, or is it a record, or is it an object" issue

can't repro in master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rickyvetter picture rickyvetter  路  4Comments

chenglou picture chenglou  路  3Comments

shaneosullivan picture shaneosullivan  路  3Comments

bloodyowl picture bloodyowl  路  3Comments

modlfo picture modlfo  路  4Comments