11 lines
213 B
Text
11 lines
213 B
Text
|
public class Greet {
|
||
|
public Either<Integer, String> f(int val) {
|
||
|
new Type();
|
||
|
if (val) {
|
||
|
return getType();
|
||
|
} else if (!val) {
|
||
|
throw getError();
|
||
|
}
|
||
|
}
|
||
|
}
|