Skip to content

Commit

Permalink
Fix Slang tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Feb 24, 2022
1 parent f58e728 commit 79c374e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Class {
SlangMethodPrototypeTranslationTest class >> testParameters [

^ ParametrizedTestMatrix new
forSelector: #translationStrategy addOptions: { #slangTranslate . #astTranslate }
forSelector: #translationStrategy addOptions: { #astTranslate }
]

{ #category : #helpers }
Expand Down
3 changes: 2 additions & 1 deletion smalltalksrc/Slang/CCodeGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -3434,7 +3434,8 @@ CCodeGenerator >> isNode: aNode constantValueWithinRangeOfType: aType [
{ #category : #'C code generator' }
CCodeGenerator >> isNonArgumentImplicitReceiverVariableName: aString [
^ (currentMethod definingClass implicitVariables includes: aString)
^ (currentMethod definingClass isNotNil and: [
currentMethod definingClass implicitVariables includes: aString ])
or: [ (self typeOfVariable: aString) == #implicit ]
]
Expand Down

0 comments on commit 79c374e

Please sign in to comment.