2012-02-24 15 views
13

該單元發生故障在XE2更新3編譯用 「[DCC致命錯誤] Test.pas(22):F2084內部錯誤:URW1147」當我聲明一個通用的「T數組」時,應該如何處理內部錯誤?

unit Test; 

interface 

type 
    TSorter<T> = procedure(var Values: array of T); 

    TTest = class 
    public 
    procedure Sort<T>(const Sorter: TSorter<T>); 
    end; 

implementation 

procedure TTest.Sort<T>(const Sorter: TSorter<T>); 
begin 
end; 

end. 

我已經提交了一份QC報告:QC#103671

有沒有人對此有解決方法的想法?

回答

15

如果用TSorter<T> = procedure(var Values: TArray<T>);替換TSorter聲明,它在XE上編譯得很好。

+1

此解決方法也適用於XE2。謝謝! – BofA 2012-02-24 11:46:57

相關問題