forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attr_test.ml
34 lines (26 loc) · 904 Bytes
/
attr_test.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
let u = fun [@bs] x y -> x + y
let h = u 1 2 [@bs]
type u = < v : int ; y : int >
type ('a,'b) xx =
(< case : (int -> (int -> 'a [@bs]) [@bs]); .. > as 'b)
type ('a,'b) xx_uncurry =
(< case : int -> (int -> 'a ); .. > ) as 'b
type yy_uncurry = < x : int >
type yy = < x : int >
type number = float
class type date =
object
method toDateString : unit -> string
method getTime : unit -> number
method setMilliseconds : number -> number
method setSeconds : number -> number
method setSeconds__2 : number -> number -> number
method setUTCFullYear__3 : number -> number -> number -> number
method toUTCString : unit -> string
method toISOString : unit -> string
method toJSON__ : unit -> string
method toJSON__1 : 'a -> string
end
let max2 : float -> float -> float [@bs] =
fun [@bs] x y -> x +. y
let hh = max2 1. 2. [@bs]