Skip to content

Commit be0a745

Browse files
effects keyword can be an attribute id (#2714)
1 parent c6c2477 commit be0a745

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

test/passing/refs.ahrefs/attributes.ml.ref

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,5 @@ let _ =
584584

585585
let fold input ~init ~f =
586586
foldi input ~init ~f:(fun (_ : int) acc x -> f acc x) [@nontail]
587+
588+
[@@@effect]

test/passing/refs.default/attributes.ml.ref

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,5 @@ let _ =
463463

464464
let fold input ~init ~f =
465465
foldi input ~init ~f:(fun (_ : int) acc x -> f acc x) [@nontail]
466+
467+
[@@@effect]

test/passing/refs.janestreet/attributes.ml.ref

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,3 +535,5 @@ let _ =
535535
;;
536536

537537
let fold input ~init ~f = foldi input ~init ~f:(fun (_ : int) acc x -> f acc x) [@nontail]
538+
539+
[@@@effect]

test/passing/refs.ocamlformat/attributes.ml.ref

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,3 +513,5 @@ let _ =
513513

514514
let fold input ~init ~f =
515515
foldi input ~init ~f:(fun (_ : int) acc x -> f acc x) [@nontail]
516+
517+
[@@@effect]

test/passing/tests/attributes.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,5 @@ let _ = (begin[@a] x end [@b])
498498

499499
let fold input ~init ~f =
500500
foldi input ~init ~f:(fun (_ : int) acc x -> f acc x) [@nontail]
501+
502+
[@@@effect]

0 commit comments

Comments
 (0)