Skip to content

Commit

Permalink
add tests that previously caused issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Sep 9, 2024
1 parent 874fb5b commit fae6d4f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/constrained-generics/basic/set3/interface-in-proc.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
interface I {}
proc foo(i) {
record R: I {}

var r: R;
param p = __primitive("implements interface", r, I);
compilerAssert(p == 0);
}
foo(2);
Empty file.
12 changes: 12 additions & 0 deletions test/constrained-generics/basic/set3/scoped-use-interface.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Other {
class CC { }
interface II { }
}

proc foo() {
use Other;

record R: II {}
class C: CC {}
}
foo();
Empty file.

0 comments on commit fae6d4f

Please sign in to comment.