hitish
hitish

Reputation: 355

How to set type to an argument of function in polyml?

I want to overide the type detection of ml and want the argument to be allowed type as specified.

Upvotes: 1

Views: 88

Answers (1)

qaphla
qaphla

Reputation: 4733

The way to do this is to use

Unsafe.cast

, which has type 'a -> 'b.

You should never use this -- if you think you need to, you probably should instead consider whether what you're trying to do is really a good idea. It's called unsafe for a reason.

Upvotes: 1

Related Questions