Skip to content

No line number given when a type has wrong defaults #37

@piojo-zz

Description

@piojo-zz

This invalid code:

object template kk;

type t = {
    "a" : long = value("/a")
};

"/a" = 1;

bind "/c" = t;

gives the following insufficient error message:

syntax error [/home/munoz/kk.pan:?]
DML block for default value does not evaluate to a compile-time constant

It should identify that the invalid default value is in line 4.

I've reproduced this on 9.0.0-RC3, 9.3 and 10.0.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions