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
Copy file name to clipboardExpand all lines: jscomp/super_errors/super_typetexp.ml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,9 @@ let report_error env ppf = function
114
114
@]@,\
115
115
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
116
116
@]"
117
-
longident lid lid lid;
117
+
longident lid
118
+
longident lid
119
+
longident lid;
118
120
Typetexp.spellcheck ppf fold_constructors env lid
119
121
|Unbound_labellid ->
120
122
(* modified *)
@@ -124,7 +126,9 @@ let report_error env ppf = function
124
126
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
125
127
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
Copy file name to clipboardExpand all lines: lib/4.06.1/unstable/js_compiler.ml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -411935,21 +411935,25 @@ let report_error env ppf = function
411935
411935
fprintf ppf "@[<v>\
411936
411936
@{<info>The variant constructor %a can't be found.@}@,@,\
411937
411937
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
411938
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
411939
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
411938
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
411939
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
411940
411940
@]@,\
411941
411941
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
411942
411942
@]"
411943
+
longident lid
411944
+
longident lid
411943
411945
longident lid;
411944
411946
Typetexp.spellcheck ppf fold_constructors env lid
411945
411947
| Unbound_label lid ->
411946
411948
(* modified *)
411947
411949
fprintf ppf "@[<v>\
411948
411950
@{<info>The record field %a can't be found.@}@,@,\
411949
411951
If it's defined in another module or file, bring it into scope by:@,\
411950
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
411951
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
411952
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
411953
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
Copy file name to clipboardExpand all lines: lib/4.06.1/unstable/js_refmt_compiler.ml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -572031,21 +572031,25 @@ let report_error env ppf = function
572031
572031
fprintf ppf "@[<v>\
572032
572032
@{<info>The variant constructor %a can't be found.@}@,@,\
572033
572033
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
572034
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
572035
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
572034
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
572035
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
572036
572036
@]@,\
572037
572037
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
572038
572038
@]"
572039
+
longident lid
572040
+
longident lid
572039
572041
longident lid;
572040
572042
Typetexp.spellcheck ppf fold_constructors env lid
572041
572043
| Unbound_label lid ->
572042
572044
(* modified *)
572043
572045
fprintf ppf "@[<v>\
572044
572046
@{<info>The record field %a can't be found.@}@,@,\
572045
572047
If it's defined in another module or file, bring it into scope by:@,\
572046
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
572047
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
572048
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
572049
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
Copy file name to clipboardExpand all lines: lib/4.06.1/whole_compiler.ml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -419253,21 +419253,25 @@ let report_error env ppf = function
419253
419253
fprintf ppf "@[<v>\
419254
419254
@{<info>The variant constructor %a can't be found.@}@,@,\
419255
419255
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
419256
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
419257
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
419256
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
419257
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
419258
419258
@]@,\
419259
419259
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
419260
419260
@]"
419261
+
longident lid
419262
+
longident lid
419261
419263
longident lid;
419262
419264
Typetexp.spellcheck ppf fold_constructors env lid
419263
419265
| Unbound_label lid ->
419264
419266
(* modified *)
419265
419267
fprintf ppf "@[<v>\
419266
419268
@{<info>The record field %a can't be found.@}@,@,\
419267
419269
If it's defined in another module or file, bring it into scope by:@,\
419268
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
419269
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
419270
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
419271
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
0 commit comments