| 1 | const FooType = opaque {}; |
| 2 | export fn entry1() void { |
| 3 | const someFuncPtr: fn (FooType) void = undefined; |
| 4 | _ = someFuncPtr; |
| 5 | } |
| 6 | |
| 7 | fn foo(p: FooType) void { |
| 8 | _ = p; |
| 9 | } |
| 10 | export fn entry3() void { |
| 11 | _ = foo; |
| 12 | } |
| 13 | |
| 14 | // error |
| 15 | // |
| 16 | // :3:28: error: parameter of opaque type 'tmp.FooType' not allowed |
| 17 | // :1:17: note: opaque declared here |
| 18 | // :7:8: error: parameter of opaque type 'tmp.FooType' not allowed |
| 19 | // :1:17: note: opaque declared here |