Package manifold.ext.rt.api
Class auto
- java.lang.Object
-
- manifold.ext.rt.api.auto
-
public final class auto extends Object
Serves as the pseudo keywordauto, which declares a field, local, or method as having its type inferred from its value/definition. A field or local variable declared asautoinfers its type from the initializer. The behavior is similar to Java's 'var'. A method with return typeautoinfers its return type from the return statements in its definition. As a consequence, fields and methods declared in the inferred type are type-safely accessible to call-sites.