Skip to content

Commit 9acb8f2

Browse files
committed
fix lookupEnumerator
1 parent 39e064e commit 9acb8f2

File tree

2 files changed

+2
-2
lines changed
  • .build
  • semantics/cpp/language/translation

2 files changed

+2
-2
lines changed

.build/k

Submodule k updated from 87c0811 to 7399077

semantics/cpp/language/translation/name.k

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ module CPP-TRANSLATION-NAME
261261
<enumerators>... X |-> V::PRVal </enumerators>
262262
requires variable in Mask
263263

264-
rule <k> lookupEnumerator(X::CId, E::Enum, Mask::Set, C:K) => #if C ==K .K #then prv(V, Tr, ET) #else classSet(prv(V, Tr, ET), {C}:>Class :: X, SetItem({C}:>Class)) #fi ... </k>
264+
rule <k> lookupEnumerator(X::CId, E::Enum, Mask::Set, C:K) => #if C ==K .K #then {prv(V, Tr, ET)}:>KItem #else {classSet(prv(V, Tr, ET), {C}:>Class :: X, SetItem({C}:>Class))}:>KItem #fi ... </k>
265265
<curr-tr-scope> Sc::Scope </curr-tr-scope>
266266
<enum-id> E </enum-id>
267267
<enum-type> ET::CPPType </enum-type>

0 commit comments

Comments
 (0)