archethic-node icon indicating copy to clipboard operation
archethic-node copied to clipboard

Smart Contracts: we should not be able to redeclare functions/actions/conditions

Open bchamagne opened this issue 1 year ago • 0 comments

@version 1

condition triggered_by: transaction, as: []
actions triggered_by: transaction do
  Contract.set_content "Hello world!"
end

condition triggered_by: transaction, as: []
actions triggered_by: transaction do
  Contract.set_content "Hello2 world!"
end



export fun concat(a,b) do
  "#{a}#{b}"
end


export fun concat(a,b) do
  "#{a}-#{b}"
end

I expect this code to fail to parse.

bchamagne avatar Sep 07 '23 09:09 bchamagne