Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitution error for array element #292

Open
iron9light opened this issue May 13, 2020 · 1 comment
Open

Substitution error for array element #292

iron9light opened this issue May 13, 2020 · 1 comment

Comments

@iron9light
Copy link
Contributor

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}
}
@holonsoftFounder
Copy link

AFAIK an array has to use a '='
Line 3 in your 1st example should be

c = [

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants