Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple record with common field names #53

Open
sapristi opened this issue Apr 4, 2020 · 0 comments
Open

Multiple record with common field names #53

sapristi opened this issue Apr 4, 2020 · 0 comments

Comments

@sapristi
Copy link

sapristi commented Apr 4, 2020

Hello,

It seems when running decco over multiple record type with common keys, for example:

[@decco]
type record1 = {field1: int};

[@decco]
type record2 = {
  field1: int,
  field2: string,
};

then a warning is raised:

Warning number 41 (configured as error) 
  (No file name)
  
  field1 belongs to several types: record2 record1
The first one was selected. Please disambiguate if this is wrong.

I finally found out the warning can be specified as not-an-error in bsconfig.json, but it might be good to have a few lines about this in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant