zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

blob 98cbc37d (364B) - Raw


      1 const Foo = @Type(.{
      2     .Fn = .{
      3         .calling_convention = .Unspecified,
      4         .alignment = 0,
      5         .is_generic = false,
      6         .is_var_args = false,
      7         .return_type = null,
      8         .args = &.{},
      9     },
     10 });
     11 comptime { _ = Foo; }
     12 
     13 // error
     14 // backend=stage1
     15 // target=native
     16 //
     17 // tmp.zig:1:20: error: Type.Fn.return_type must be non-null for @Type