ethereum / act

Smart contract specification language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple state vars with the same name are accepted

leonardoalt opened this issue · comments

commented
constructor of LValue
interface constructor()

creates

	uint x := 2
	bool x := false

This does not causes errors when parse/type.
If we add

invariants

	x >= 0

then parse fails with a type mismatch

commented

I'm not sure if this is the expected behavior, please close if so.

This is definitely a bug imo