improvements to type checking of record updates
This commit is contained in:
12
tests/NestedUpdate.newt
Normal file
12
tests/NestedUpdate.newt
Normal file
@@ -0,0 +1,12 @@
|
||||
module NestedUpdate
|
||||
|
||||
import Prelude
|
||||
|
||||
record Foo where
|
||||
bar : Int
|
||||
|
||||
record Bar where
|
||||
foo : Foo
|
||||
|
||||
blah : Bar → Bar
|
||||
blah x = [ foo $= [ bar := 1]] x
|
||||
Reference in New Issue
Block a user