mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
12 lines
198 B
Idris
12 lines
198 B
Idris
module Main
|
|
|
|
record TestRecord where
|
|
constructor MkTestRecord
|
|
recField : Int
|
|
|
|
testRec : TestRecord
|
|
testRec = MkTestRecord 0
|
|
|
|
updatedRec : TestRecord
|
|
updatedRec = record { recField = 1 } testRec
|