Skip to content

What is "named type restriction" and how to mitigate it? #2122

Answered by alexcrichton
markusscherer asked this question in Q&A
Discussion options

You must be logged in to vote

This restriction may not be super well documented in the spec (I haven't checked in awhile), but basically what you need to do is:

(export $t' "t" (type $t))

and then use $t' in the case.

Exporting a type introduces a new type index, and that new type index is the named one which must be used.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@markusscherer
Comment options

Answer selected by markusscherer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants