Home / Docs / Diagnostics

U0007: Malformed literal

Release v0.4.0

U0007 reports:

Why Una rejects it

How to fix it

When the intended spelling is unambiguous, the diagnostic carries a mechanical edit.

The repair at a glance

diff
  module demo

- pub timeout() -> Int = 030
+ pub timeout() -> Int = 30

Failing example

una
module demo

pub timeout() -> Int = 030

Fixed example

una
module demo

pub timeout() -> Int = 30