We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c6e4c commit ad92b39Copy full SHA for ad92b39
test/core/stack-switching/cont.wast
@@ -242,6 +242,27 @@
242
(type $c2 (cont $f2))
243
)
244
245
+(assert_invalid
246
+ (module
247
+ (rec
248
+ (type $fA (func))
249
+ (type $fB (func))
250
+ (type $cont (cont $fA))
251
+ )
252
+ (elem declare func $b)
253
+ (func $a
254
+ (drop
255
+ (cont.new $cont ;; expects a ref of $fA, not $fB
256
+ (ref.func $b)
257
258
259
260
+ (func $b (type $fB)
261
262
263
+ "type mismatch")
264
+
265
266
;; Test resume_throw used on the very first execution of a continuation (so the
267
;; code in the continuation function is never reached).
268
(module
0 commit comments