summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0099.pp
blob: f06e1f80d5214c3936b8c5ee7d73dc1d005c3b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ Old file: tbs0118.pp }
{ Procedural vars cannot be assigned nil ?              OK 0.99.6 (FK) }

program Test1;

  type
    ExampleProc = procedure;

  var
    Eg: ExampleProc;

  begin
    Eg := nil;  { This produces a compiler error }
  end.