dmitry.petrov
07/25/2017, 8:42 AMval result: Int = match("1".some())(
case(typeOf<String>() then { "String" }),
case(typeOf<Option.Some<Int>>() then { "Option.Some<Int>" }),
case(typeOf<Option.Some<String>>() then { "Option.Some<String>" }),
case(typeOf<Option.Some<Double>>() then { "Option.Some<Double>" }),
case(typeOf<Int>() then { "Int" }),
default = { "Any" }
)
?