pkl icon indicating copy to clipboard operation
pkl copied to clipboard

`outer.outer.p` doesn't work?

Open EvgSkv opened this issue 4 months ago • 2 comments

What if I need to access a field p which is two levels up? Seems like outer.outer.p should access it, but I am getting an error.

p = "value one"

d1 {
  p = "value two"
  w = outer.p  // OK
  d2 {
    x = p // OK
    y = module.p // OK
    z = outer.outer.p  // Results in an error, but shouldn't this resolve to p which is "value one"? 
  }
}

EvgSkv avatar Feb 14 '24 21:02 EvgSkv