Skip to content

Commit

Permalink
Add a future test for #26362 (#26363)
Browse files Browse the repository at this point in the history
Add a future test for #26362

[Trivial - not reviewed]
  • Loading branch information
jabraham17 authored Dec 4, 2024
2 parents ebc3fc8 + b0cd233 commit f564b4e
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 f564b4e

Please sign in to comment.