contract D {} contract C { function foo() pure internal { new D{salt:"abc", value:3, gas: 4}; new D{slt:5, value:3}; new D{val:5}; new D{salt:"xyz", salt:"aaf"}; new D{value:3, value:4}; new D{random:5+5}; new D{what:2130+5}; new D{gas: 2}; } } // ==== // EVMVersion: >=constantinople // ---- // TypeError: (64-98): Cannot set option "value" on a non-payable function type. // TypeError: (64-98): Function call option "gas" cannot be used with "new". // TypeError: (102-123): Unknown call option "slt". Valid options are "salt", "value" and "gas". // TypeError: (102-123): Cannot set option "value" on a non-payable function type. // TypeError: (127-139): Unknown call option "val". Valid options are "salt", "value" and "gas". // TypeError: (143-172): Duplicate option "salt". // TypeError: (176-199): Cannot set option "value" on a non-payable function type. // TypeError: (176-199): Cannot set option "value" on a non-payable function type. // TypeError: (203-220): Unknown call option "random". Valid options are "salt", "value" and "gas". // TypeError: (224-242): Unknown call option "what". Valid options are "salt", "value" and "gas". // TypeError: (246-259): Function call option "gas" cannot be used with "new".