You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we provide constraints on generic data types? For example:
interface Printable(type T) {
procT.print();
}
record PrintableRecord {
var element: Printable;
}
proc worker(arg: PrintableRecord) {
arg.element.print(); // legal because guaranteed by the interface
}
var r: PrintableRecord(...); // the argument must implement Printable
The text was updated successfully, but these errors were encountered:
Main issue: #8629
Should we provide constraints on generic data types? For example:
The text was updated successfully, but these errors were encountered: