-
Notifications
You must be signed in to change notification settings - Fork 470
Clean up Super_error #6199
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
Clean up Super_error #6199
Changes from 5 commits
8db4e2f
4b8c3ee
4ec6771
2bd9366
6a76c51
9706da8
10ac8c0
9d4e302
8d8bf81
4ecaeb3
2c24e15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;31mWe've found a bug for you![0m | ||
[36m/.../fixtures/repeated_def_extension_constr.res[0m:[2m3:6[0m | ||
|
||
1 [2m│[0m type a = .. | ||
2 [2m│[0m | ||
[1;31m3[0m [2m│[0m type [1;31ma[0m | ||
4 [2m│[0m | ||
|
||
Multiple definition of the type name a at line 1, characters 5-6. | ||
Names must be unique in a given structure or signature. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;31mWe've found a bug for you![0m | ||
[36m/.../fixtures/repeated_def_module_types.res[0m:[2m3:13[0m | ||
|
||
1 [2m│[0m module type M = {} | ||
2 [2m│[0m | ||
[1;31m3[0m [2m│[0m module type [1;31mM[0m = {} | ||
4 [2m│[0m | ||
|
||
Multiple definition of the module type name M at line 1, characters 12-13. | ||
Names must be unique in a given structure or signature. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;31mWe've found a bug for you![0m | ||
[36m/.../fixtures/repeated_def_modules.res[0m:[2m3:8[0m | ||
|
||
1 [2m│[0m module M = {} | ||
2 [2m│[0m | ||
[1;31m3[0m [2m│[0m module [1;31mM[0m = {} | ||
4 [2m│[0m | ||
|
||
Multiple definition of the module name M at line 1, characters 7-8. | ||
Names must be unique in a given structure or signature. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;31mWe've found a bug for you![0m | ||
[36m/.../fixtures/repeated_def_types.res[0m:[2m3:6[0m | ||
cristianoc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
1 [2m│[0m type a | ||
2 [2m│[0m | ||
[1;31m3[0m [2m│[0m type [1;31ma[0m | ||
4 [2m│[0m | ||
|
||
Multiple definition of the type name a at line 1, characters 5-6. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should say 1:6 for consistency. I think this is using ocaml locations, from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now I get it about error handling including super_error. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this test output has non changed yet? |
||
Names must be unique in a given structure or signature. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type a = .. | ||
|
||
type a |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module type M = {} | ||
|
||
module type M = {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module M = {} | ||
|
||
module M = {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type a | ||
|
||
type a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps mention this as breaking change in the changelog.
I don't think there's any use for calling
bsc
directly, but just to be on the safe side.Isn't there also something in
bsconfig
? Perhaps one could deprecate or remove that too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add it to the changelog as a breaking change, but how do I deprecate it when I've already removed the super_error? There is a way to make it deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is low risk. Remove is OK. No need to deprecate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4ecaeb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2c24e15