File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
tests/build_tests/super_errors Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ [1;31mWe've found a bug for you![0m
3+ [36m/.../fixtures/stdlib_removed_in_error.res[0m:[2m3:12-42[0m
4+
5+ 1 [2m│[0m type x = Stdlib.Promise.t<int>
6+ 2 [2m│[0m
7+ [1;31m3[0m [2m│[0m let x: x = [1;31mStdlib.Promise.resolve("hello")[0m
8+
9+ This has type: [1;31mPromise.t<string>[0m [2m(defined as[0m [1;31mpromise<string>[0m[2m)[0m
10+ But it's expected to have type: [1;33mx[0m [2m(defined as[0m [1;33mpromise<int>[0m[2m)[0m
11+
12+ The incompatible parts:
13+ [1;31mstring[0m vs [1;33mint[0m
14+
15+ You can convert [1;33mstring[0m to [1;33mint[0m with [1;33mBelt.Int.fromString[0m.
Original file line number Diff line number Diff line change 1+ type x = Stdlib .Promise .t <int >
2+
3+ let x : x = Stdlib .Promise .resolve ("hello" )
You can’t perform that action at this time.
0 commit comments