There seems to be some regional dialect variation here?!!!
Yes indeed!
Here's the wikipedia disambiguation page for the different meanings.....
https://en.wikipedia.org/wiki/Pasty_(disambiguation)
I had only ever heard of the second meaning.......
Brian