purescript-0.15.15: tests/purs/passing/ObjectWildcards.purs
module Main where
import Prelude
import Effect
import Effect.Console
import Test.Assert
mkRecord = { foo: _, bar: _, baz: "baz" }
getValue :: Effect Boolean
getValue = pure true
main = do
obj <- { value: _ } <$> getValue
logShow obj.value
let x = 1.0
point <- { x: _, y: x } <$> pure 2.0
assert $ point.x == 2.0
assert $ point.y == 1.0
log (mkRecord 1.0 "Done").bar