elm-ast icon indicating copy to clipboard operation
elm-ast copied to clipboard

Variables can't be negated with a minus

Open tunguski opened this issue 8 years ago • 2 comments

Taken extracted from https://raw.githubusercontent.com/rundis/elm-bootstrap/3.0.0/src/Bootstrap/Popover.elm

calculatePos pos { rect, offsetWidth, offsetHeight } =
            { left = -offsetWidth
            , top = (rect.height / 2) - (offsetHeight / 2)
            }

tunguski avatar Jun 27 '17 19:06 tunguski

left = -offsetWidth is problematic here

tunguski avatar Jun 27 '17 21:06 tunguski

Seems that generally - doesn't work before any variable name

wende avatar Jun 27 '17 23:06 wende