Skip to content

Commit

Permalink
Add future for issue chapel-lang#14923
Browse files Browse the repository at this point in the history
  • Loading branch information
mppf committed Feb 28, 2020
1 parent d0fd15e commit 80c677b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/types/records/const-checking/array-of-owned-const.bad
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nil nil
nil nil
{x = 1} {x = 2}
15 changes: 15 additions & 0 deletions test/types/records/const-checking/array-of-owned-const.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class C { var x: int; }

proc main() {
var X: [1..2] owned C?;
X[1] = new owned C(1);
X[2] = new owned C(2);

const Y = X;

const Z = Y;

writeln(X);
writeln(Y);
writeln(Z);
}
2 changes: 2 additions & 0 deletions test/types/records/const-checking/array-of-owned-const.future
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bug: missing const checking for init-copy from const array of owned class?
#14923
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const checking error on `const Z = Y;`

0 comments on commit 80c677b

Please sign in to comment.