public class Greet { public Either f(int val) { new Type(); if (val) { return getType(); } else if (!val) { throw getError(); } } }