From a6bb66d5a34279f6b762cedc577155de6259ff30 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Mon, 8 Jun 2009 01:52:52 +0000 Subject: Fix SF/2799773 * interp/c-util.boot (diagnoseUnknownType): Diagnose duplicate fields in Record or Union, or duplicate constants in Enumeration. * interp/i-eval.boot (checkRecordOrUnionFields): New. (evaluateType): Use it. * testsuite/interpreter/sf-2799773.input: New. --- src/testsuite/interpreter/sf-2799773.input | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/testsuite/interpreter/sf-2799773.input (limited to 'src/testsuite/interpreter') diff --git a/src/testsuite/interpreter/sf-2799773.input b/src/testsuite/interpreter/sf-2799773.input new file mode 100644 index 00000000..c22b4dfa --- /dev/null +++ b/src/testsuite/interpreter/sf-2799773.input @@ -0,0 +1,5 @@ +-- Contributed by Yue Li +-- Issue: OpenAxiom failed to check for duplicate fields +-- in Record or Unions. + +r : Record(a: Integer, a: Symbol) := [1, 's] --- expectred: error -- cgit v1.2.3