reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.14k stars 428 forks source link

Fast pipe and local open #1983

Closed alex35mil closed 6 years ago

alex35mil commented 6 years ago

Compiler yells when I fast-pipe into local open.

Repro: https://reasonml.github.io/en/try.html?rrjsx=true&reason=LYewJgrgNgpgBAMTgXjgbwFBzrALnAMxTgAoAPALjgEsA7XAGjgE8qBnXAJzoHMBKFAD5SfANwYAvuIwB6AFRwAmjAAOcOTIwBGOAB9hCAHQkCJAPpMARFst8xGWQuVqNGIyR27DhEtdv3HOAA5EBV4V09vd1M-O3EgA

strega-nil commented 6 years ago

It seems like it should be a compiler error if one does x |. <expr> where <expr> is not a (possibly parenthesized) function-call-expression.

chenglou commented 6 years ago

cc @bobzhang

bobzhang commented 6 years ago

feel free to close it, moved to bucklescript repo