# Test that a :type: field with no type gives its param no empty type,
# and that one for a name no other field gives is a param with no type,
# so that the name is kept.
=== input
Short.

:param x: The x.
:type x:
:type y:
=== parse rest
short_description: 'Short.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: 'The x.'
  kind: param
  key: 'param'
  arg_name: 'x'
  is_optional: False
- DocstringParam
  kind: param
  key: 'type'
  arg_name: 'y'
  is_optional: False
=== compose rest
Short.

:param x: The x.
:type y:
