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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -109,8 +109,8 @@ 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
@]"
@@ -121,8 +121,8 @@ let report_error env ppf = function
121
121
fprintf ppf "@[<v>\
122
122
@{<info>The record field %a can't be found.@}@,@,\
123
123
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}@}@]\
124
+
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
125
+
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\
0 commit comments