Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type error table #77

Open
chenglou opened this issue Apr 8, 2017 · 0 comments
Open

type error table #77

chenglou opened this issue Apr 8, 2017 · 0 comments

Comments

@chenglou
Copy link
Collaborator

chenglou commented Apr 8, 2017

Error: This expression has type
MessengerBarsRe.t =
ImmutableJsRe.OrderedMap.t
string (Js.null_undefined FooBarPayloadRe.t)
but an expression was expected of type
ImmutableJsRe.OrderedMap.t
string
(Js.Null_undefined.t
(Js.t ({ employee : Js.Null_undefined.t 'b, .. } as 'a)))
Type Js.null_undefined FooBarPayloadRe.t
is not compatible with type
Js.Null_undefined.t (Js.t 'a) = Js.null_undefined (Js.t 'a)
Type
FooBarPayloadRe.t =
Js.t
{ _type : Js.null_undefined string,
employee : Js.boolean, fbid : Js.null_undefined string, gender : int,
is_employee_away : Js.null_undefined Js.boolean,
link : Js.null_undefined string, name : string,
timezone : Js.null_undefined float, vanity : Js.null_undefined string,
work_id : Js.null_undefined string }
is not compatible with type Js.t 'a
Type Js.boolean is not compatible with type
Js.Null_undefined.t 'b = Js.null_undefined 'b
Types for method employee are incompatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant