chapel icon indicating copy to clipboard operation
chapel copied to clipboard

dyno: odd issue when calling `init` without `this`

Open DanilaFe opened this issue 9 months ago • 0 comments

The following program:

record R {
  var x: int;

  proc init(x: int) {

  }

  proc init(x: int, y: int) {
    init(__primitive("+", x, y));
  }
}

Emits an error about being unable to pass a const int to a value of type ref R. This makes little sense to me.

DanilaFe avatar May 15 '24 17:05 DanilaFe