aboutsummaryrefslogtreecommitdiff
path: root/src/testsuite/interpreter
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-02-14 15:33:14 +0000
committerdos-reis <gdr@axiomatics.org>2010-02-14 15:33:14 +0000
commitdbe91668915a487380cfbde6e0036264b5d766d6 (patch)
tree948be346855f226a6ccbe479c7494c1c57d690ed /src/testsuite/interpreter
parent28d261c72d6347990c751e43e4fc5604716f301c (diff)
downloadopen-axiom-dbe91668915a487380cfbde6e0036264b5d766d6.tar.gz
Fix SF/2910351
* interp/nruncomp.boot (deltaTran): Avoid use of user-visible names for compiler internal tags. (genDeltaEntry): Likewise. (NRTassocIndex): Likewise. (NRTgetLocalIndex): Likewise. (NRTsubstDelta): Likewise. * interp/wi2.boot (genDeltaEntry): Likewise.
Diffstat (limited to 'src/testsuite/interpreter')
-rw-r--r--src/testsuite/interpreter/sf-2910351.input5
-rw-r--r--src/testsuite/interpreter/sf-2910351.spad17
2 files changed, 22 insertions, 0 deletions
diff --git a/src/testsuite/interpreter/sf-2910351.input b/src/testsuite/interpreter/sf-2910351.input
new file mode 100644
index 00000000..50eaca6b
--- /dev/null
+++ b/src/testsuite/interpreter/sf-2910351.input
@@ -0,0 +1,5 @@
+)co sf-2910351
+
+x : Identifier := 'PlaneAlgebraicCurvePlot
+
+getCtorKindInString(x)$Bug
diff --git a/src/testsuite/interpreter/sf-2910351.spad b/src/testsuite/interpreter/sf-2910351.spad
new file mode 100644
index 00000000..f634e077
--- /dev/null
+++ b/src/testsuite/interpreter/sf-2910351.spad
@@ -0,0 +1,17 @@
+
+)abbrev package BUG Bug
+Bug(): Public == Private where
+ Public == with
+ getCtorKindInString: Identifier -> String
+ getCtorKind: Identifier -> ConstructorKind
+ Private == add
+ getCtorKind(c: Identifier): ConstructorKind ==
+ kind(retract(findConstructor(c)$Constructor)$(Maybe Constructor))$Constructor
+
+ getCtorKindInString(c: Identifier): String ==
+ k : ConstructorKind := getCtorKind(c)
+ k = category$ConstructorKind => "Category"
+ k = package$ConstructorKind => "Package"
+ k = domain$ConstructorKind => "Domain"
+ "unknown constructor kind! "
+