test-suite/bugs/bug_20000.v
raw| 1 | Module Type A. |
| 2 | End A. |
| 3 | |
| 4 | Module Type B. |
| 5 | Declare Module a : A. |
| 6 | End B. |
| 7 | |
| 8 | Module Type C. |
| 9 | Declare Module b : B. |
| 10 | Module a := b.a. |
| 11 | End C. |
| 12 | |
| 13 | Module D. |
| 14 | Declare Module aa: A. |
| 15 | (* Uncaught exception. Fixed by using "with Module b.a := aa" instead *) |
| 16 | Fail Module Type x := C with Module a := aa. |
| 17 | End D. |