I'm getting the following error in the initializer in the chapel class I'm writing:
unresolved access of 'int(64)' by '()'
I've tried removing as much as possible from my code and am still getting the error, but only when I compile with the class code we've been given to test things. Here's the class:
use Time;
use Random;
use Semaphore;
class BlockingQueue {
type eltType;
var capacity : int; //total space
//var elementsDomain : domain(1);
var elements : [0..0] eltType;
var numElements : int; //current number of items
proc init(type eltType, size : int) {
this.eltType = eltType;
}
proc add(element : eltType){
this.elements[0] = element;
}
proc remove() : eltType {
return this.elements[0];
}
}
var queue = new owned BlockingQueue(int, 1);
queue.add(13);
queue.add(19);
queue.add(14);
writeln(queue);
Here is the testing class. My teacher gave me permission to post this.
https://raw.githubusercontent.com/paithan/OSChapelTests/master/testBlockingQueue.chpl
the class is using chapel version 1.18