Skip to content

Commit

Permalink
add future for 26362
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 4, 2024
1 parent b442d78 commit b0cd233
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functions/iterators/qualifiedParallelImport.bad
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
qualifiedParallelImport.chpl:7: In function 'main':
qualifiedParallelImport.chpl:9: error: A standalone or leader iterator is not found for the iterable expression in this forall loop
11 changes: 11 additions & 0 deletions test/functions/iterators/qualifiedParallelImport.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

module A {
iter foo(): int { yield 1; }
iter foo(param tag): int where tag == iterKind.standalone { yield 1; }
}
module B {
proc main() {
import A;
forall i in A.foo() { writeln(i); }
}
}
2 changes: 2 additions & 0 deletions test/functions/iterators/qualifiedParallelImport.future
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bug: cannot resolve parallel iterator with qualified import
#26362
1 change: 1 addition & 0 deletions test/functions/iterators/qualifiedParallelImport.good
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1

0 comments on commit b0cd233

Please sign in to comment.