test_interface.sol 263 B

123456789
  1. interface foo {
  2. constructor(int arg1) public {
  3. }
  4. }
  5. // ---- Expect: diagnostics ----
  6. // error: 3:13-41: constructor not allowed in an interface
  7. // warning: 3:35-41: 'public': visibility for constructors is ignored