Check for missing fields in record expressions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
contract MissingFieldsInRecordExpr =
|
||||
|
||||
record r('a) = {x : int, y : string, z : 'a}
|
||||
type alias('a) = r('a)
|
||||
|
||||
function fail1() = { x = 0 }
|
||||
function fail2(z : 'a) : r('a) = { y = "string", z = z }
|
||||
function fail3() : alias(int) = { x = 0, z = 1 }
|
||||
Reference in New Issue
Block a user