create procedure foo(bar in varchar2 default func(x)) is
  var1 varchar2(1) default func(x); -- Noncompliant {{Move this initialization to the BEGIN...END block.}}
  var2 varchar2(1) := func(x); -- Noncompliant
  var3 json := json(); -- Compliant
  
  type rec is record (field varchar2(1) default func(x));
  
  cursor cur(param in varchar2 default func(x)) is
    select 1 from dual;
begin
  null;
end;
