flintlang / flint

The Flint Programming Language for Smart Contracts
MIT License
245 stars 18 forks source link

public function does not support structs as function arguments #465

Open wmanshu opened 5 years ago

wmanshu commented 5 years ago
public func example(s: inout someStruct) // does not compile

func example(s: inout someStruct)// compiles

error: Function 'example' cannot have dynamic parameters

wmanshu commented 5 years ago

But Wei works fine in both. Is this designed on purpose.