[Types] removing inline match stmt