We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76bd849 commit 8b40ba0Copy full SHA for 8b40ba0
jscomp/build_tests/super_errors/expected/dict_coercion.res.expected
@@ -0,0 +1,10 @@
1
+
2
+ [1;31mWe've found a bug for you![0m
3
+ [36m/.../fixtures/dict_coercion.res[0m:[2m7:10-30[0m
4
5
+ 5 [2m│[0m type fakeDict<'t> = {anyOtherField?: 't}
6
+ 6 [2m│[0m
7
+ [1;31m7[0m [2m│[0m let d = ([1;31mdict :> fakeDict<int>[0m)
8
+ 8 [2m│[0m
9
10
+ Type Js.Dict.t<int> = dict<int> is not a subtype of fakeDict<int>
jscomp/build_tests/super_errors/fixtures/dict_coercion.res
@@ -0,0 +1,7 @@
+let dict = Js.Dict.empty()
+dict->Js.Dict.set("someKey1", 1)
+dict->Js.Dict.set("someKey2", 2)
+type fakeDict<'t> = {anyOtherField?: 't}
+let d = (dict :> fakeDict<int>)
0 commit comments