Skip to content

Commit 2187d81

Browse files
committed
Add test for #1985
1 parent 00e216a commit 2187d81

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

intTests/test1985/test.saw

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Test top level typedefs
2+
typedef Foo = Int;
3+
typedef Bar = Foo;
4+
let thing : Bar = 2;
5+
6+
// Test local typedefs
7+
let local = do {
8+
typedef LocalFoo = Bar;
9+
typedef LocalBar = LocalFoo;
10+
let local_thing : LocalBar = 3;
11+
return ();
12+
};

intTests/test1985/test.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set -e
2+
3+
$SAW test.saw

0 commit comments

Comments
 (0)