This is a bug in the current preview and the latest master branch (June 27). A simple record in sharplab.io creates the same error.
Just add the missing type somewhere in your project
using System.ComponentModel;
namespace System.Runtime.CompilerServices
{
[EditorBrowsable(EditorBrowsableState.Never)]
internal class IsExternalInit{}
}
Records and init
will work without problem.
Only LinqPad 6 seems to work without problems, probably because it includes that type too