var x: Ref = new() leads to:
1 | var x: Ref = new()
^
Syntax Error: Parse error.
While var x: Ref leads to:
1 | var x: Ref
^^^^^^
Syntax Error: Modules and interfaces cannot have var members.
On the other hand, val x: Ref leads to:
1 | val x: Ref
^^^^^^
Type Error: The value x cannot be abstract here. An abstract member can only be declared in an interface.