Declared type could be derived from File