mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +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
|