So you're saying "It doesn't work" - whatever that actually means. That is not helpful.
The code you've posted compiles fine.
So you're saying "It doesn't work" - whatever that actually means. That is not helpful.
The code you've posted compiles fine.