forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add future for issue chapel-lang#14923
- Loading branch information
Showing
4 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
test/types/records/const-checking/array-of-owned-const.chpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
test/types/records/const-checking/array-of-owned-const.future
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const checking error on `const Z = Y;` |