{%FAIL} {$mode objfpc} { test type mismatch when specializing constants with types } program tgenconst9; type generic TByte = record end; var a: specialize TByte; begin end.