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
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -109,21 +109,25 @@ let report_error env ppf = function
109
109
fprintf ppf "@[<v>\
110
110
@{<info>The variant constructor %a can't be found.@}@,@,\
111
111
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
112
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
113
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
112
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
113
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
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
118
+
longident lid
117
119
longident lid;
118
120
Typetexp.spellcheck ppf fold_constructors env lid
119
121
|Unbound_labellid ->
120
122
(* modified *)
121
123
fprintf ppf "@[<v>\
122
124
@{<info>The record field %a can't be found.@}@,@,\
123
125
If it's defined in another module or file, bring it into scope by:@,\
124
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
125
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
126
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
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
@@ -411785,21 +411785,25 @@ let report_error env ppf = function
411785
411785
fprintf ppf "@[<v>\
411786
411786
@{<info>The variant constructor %a can't be found.@}@,@,\
411787
411787
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
411788
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
411789
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
411788
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
411789
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
411790
411790
@]@,\
411791
411791
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
411792
411792
@]"
411793
+
longident lid
411794
+
longident lid
411793
411795
longident lid;
411794
411796
Typetexp.spellcheck ppf fold_constructors env lid
411795
411797
| Unbound_label lid ->
411796
411798
(* modified *)
411797
411799
fprintf ppf "@[<v>\
411798
411800
@{<info>The record field %a can't be found.@}@,@,\
411799
411801
If it's defined in another module or file, bring it into scope by:@,\
411800
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
411801
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
411802
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
411803
+
@[- 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
@@ -571881,21 +571881,25 @@ let report_error env ppf = function
571881
571881
fprintf ppf "@[<v>\
571882
571882
@{<info>The variant constructor %a can't be found.@}@,@,\
571883
571883
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
571884
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
571885
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
571884
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
571885
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
571886
571886
@]@,\
571887
571887
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
571888
571888
@]"
571889
+
longident lid
571890
+
longident lid
571889
571891
longident lid;
571890
571892
Typetexp.spellcheck ppf fold_constructors env lid
571891
571893
| Unbound_label lid ->
571892
571894
(* modified *)
571893
571895
fprintf ppf "@[<v>\
571894
571896
@{<info>The record field %a can't be found.@}@,@,\
571895
571897
If it's defined in another module or file, bring it into scope by:@,\
571896
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
571897
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
571898
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
571899
+
@[- 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
@@ -418845,21 +418845,25 @@ let report_error env ppf = function
418845
418845
fprintf ppf "@[<v>\
418846
418846
@{<info>The variant constructor %a can't be found.@}@,@,\
418847
418847
@[<v 2>- If it's defined in another module or file, bring it into scope by:@,\
418848
-
@[- Annotating it with said module name:@ @{<info>let food = MyModule.Apple@}@]@,\
418849
-
@[- Or specifying its type:@ @{<info>let food: MyModule.fruit = Apple@}@]\
418848
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
418849
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = %a@}@]\
418850
418850
@]@,\
418851
418851
- @[Constructors and modules are both capitalized.@ Did you want the latter?@ Then instead of @{<dim>let foo = Bar@}, try @{<info>module Foo = Bar@}.@]\
418852
418852
@]"
418853
+
longident lid
418854
+
longident lid
418853
418855
longident lid;
418854
418856
Typetexp.spellcheck ppf fold_constructors env lid
418855
418857
| Unbound_label lid ->
418856
418858
(* modified *)
418857
418859
fprintf ppf "@[<v>\
418858
418860
@{<info>The record field %a can't be found.@}@,@,\
418859
418861
If it's defined in another module or file, bring it into scope by:@,\
418860
-
@[- Annotating it with said module name:@ @{<info>let baby = {MyModule.age: 3}@}@]@,\
418861
-
@[- Or specifying its type:@ @{<info>let baby: MyModule.person = {age: 3}@}@]\
418862
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
418863
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
0 commit comments