Idris2/tests/idris2/warning003/Main.idr

12 lines
198 B
Idris
Raw Normal View History

module Main
record TestRecord where
constructor MkTestRecord
recField : Int
testRec : TestRecord
testRec = MkTestRecord 0
updatedRec : TestRecord
updatedRec = record { recField = 1 } testRec