-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests that previously caused issues
Signed-off-by: Jade Abraham <[email protected]>
- Loading branch information
1 parent
874fb5b
commit fae6d4f
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,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
12
test/constrained-generics/basic/set3/scoped-use-interface.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,12 @@ | ||
module Other { | ||
class CC { } | ||
interface II { } | ||
} | ||
|
||
proc foo() { | ||
use Other; | ||
|
||
record R: II {} | ||
class C: CC {} | ||
} | ||
foo(); |
Empty file.