Skip to content

Substitution error for array element #292

@iron9light

Description

@iron9light

Hocon:

a {
  b: 0
  c: [
    "ccc"${a.b}
  ]
}

It will get exception:
Hocon.HoconParserException : Substitution value must match the rest of the field type or empty. Array value type: String, substitution type: Number. At path 'a.b', line 5, position -2.

Hocon below has no parsing exception:

a {
  b: 0
  c: "ccc"${a.b}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions